Header menu logo Nu

Affine Type

Lossless composition of individual affine matrix components. Transformations are applied as follows: Scale, then Rotation, then Translation.

Record fields

Record Field Description

Rotation

Full Usage: Rotation

Field type: Quaternion
Modifiers: mutable
Field type: Quaternion

Scale

Full Usage: Scale

Field type: Vector3
Modifiers: mutable
Field type: Vector3

Translation

Full Usage: Translation

Field type: Vector3
Modifiers: mutable
Field type: Vector3

Instance members

Instance member Description

this.Matrix

Full Usage: this.Matrix

Returns: Matrix4x4

Create an affine matrix (lossy).

Returns: Matrix4x4

Static members

Static member Description

Affine.Identity

Full Usage: Affine.Identity

Returns: Affine

The identity affine value (lossless).

Returns: Affine

Affine.combine affine1 affine2

Full Usage: Affine.combine affine1 affine2

Parameters:
Returns: Affine

Make a new affine transformation that applies affine1 followed by affine2.

affine1 : Affine
affine2 : Affine
Returns: Affine

Affine.combineAsMatrix affine1 affine2

Full Usage: Affine.combineAsMatrix affine1 affine2

Parameters:
Returns: Matrix4x4

Make a new affine transformation that applies affine1 followed by affine2 as a matrix.

affine1 : Affine
affine2 : Affine
Returns: Matrix4x4

Affine.make translation rotation scale

Full Usage: Affine.make translation rotation scale

Parameters:
Returns: Affine

Create from components (lossless).

translation : Vector3
rotation : Quaternion
scale : Vector3
Returns: Affine

Affine.makeFromMatrix affineMatrix

Full Usage: Affine.makeFromMatrix affineMatrix

Parameters:
Returns: Affine

Create from affine matrix value (lossy).

affineMatrix : Matrix4x4
Returns: Affine

Affine.makeRotation translation

Full Usage: Affine.makeRotation translation

Parameters:
Returns: Affine

Create from a rotation value (lossless).

translation : Quaternion
Returns: Affine

Affine.makeScale scale

Full Usage: Affine.makeScale scale

Parameters:
Returns: Affine

Create from a scale value (lossless).

scale : Vector3
Returns: Affine

Affine.makeTranslation translation

Full Usage: Affine.makeTranslation translation

Parameters:
Returns: Affine

Create from a translation value (lossless).

translation : Vector3
Returns: Affine

Type something to start searching.