magnitudeSquared
TypeScriptget magnitudeSquared(): numberSwift declarationvar magnitudeSquared: Double { get }The dot-product of this animatable data instance with itself.
struct · iOS 13.0+ · SDK 27.1
@frozen struct EmptyAnimatableDataAn empty type for animatable data. This type is suitable for use as the `animatableData` property of types that do not have any animatable properties.
get magnitudeSquared(): numberSwift declarationvar magnitudeSquared: Double { get }The dot-product of this animatable data instance with itself.
static get zero(): EmptyAnimatableDataSwift declarationstatic var zero: EmptyAnimatableData { get }The zero value. Zero is the identity element for addition. For any value, `x + .zero == x` and `.zero + x == x`.
scale(rhs: number): voidSwift declarationmutating func scale(by rhs: Double)Multiplies each component of this value by the given value.
static init(): EmptyAnimatableDataSwift declarationinit()No declarations were skipped in this snapshot.