Contents

VectorArithmetic

A type that can serve as the animatable data of an animatable type.

Declaration

protocol VectorArithmetic : AdditiveArithmetic

Overview

VectorArithmetic extends the AdditiveArithmetic protocol with scalar multiplication and a way to query the vector magnitude of the value. Use this type as the animatableData associated type of a type that conforms to the Animatable protocol.

Topics

Manipulating values

See Also

Making data animatable