TransformData

TransformData

Describes a relative transform as a Quaternion-Vector-Vector tuple. We use QVV to make it simpler to do LERP blending.

Constructor

new TransformData(sourceopt)

Parameters:
Name Type Attributes Description
source TransformData <optional>

source to copy.

Methods

blend(blendTo, blendWeight, store, isAdditiveopt) → {TransformData}

Blend this TransformData with the given TransformData using linear interpolation by the given blendWeight.

Parameters:
Name Type Attributes Default Description
blendTo TransformData

The TransformData to blend to

blendWeight number

The blend weight

store TransformData

The TransformData store.

isAdditive boolean <optional>
false

blendTo is treated as additive if this is true. Defaults to false.

equals(other) → {booelan}

Return true if this TransformData is approximately equal to the other TransformData

Parameters:
Name Type Description
other TransformData

The TransformData to compare

set(source)

Copy the source's values into this transform data object.

Parameters:
Name Type Description
source TransformData

our source to copy.