t3d. TransformUV

A transform object for UV coordinates.

Constructor

new TransformUV()

Create a new TransformUV object.

Extends

Members

(readonly) isTransformUV :Boolean

Type:
  • Boolean
Default Value
  • true

Methods

clone() → {t3d.TransformUV}

Clone this TransformUV object.
Returns:
The cloned object.
Type: 
t3d.TransformUV

copy(source) → {t3d.TransformUV}

Copy the properties of another TransformUV object.
Parameters:
NameTypeDescription
sourcet3d.TransformUV | t3d.Matrix3The object to copy the properties from.
Returns:
This object.
Type: 
t3d.TransformUV

equals(matrix) → {Boolean}

Return true if this matrix and m are equal.
Parameters:
NameTypeDescription
matrixt3d.Matrix3
Returns:
Type: 
Boolean

extractBasis(xAxis, yAxis, zAxis) → {t3d.Matrix3}

Extracts the basis vectors from the matrix.
Parameters:
NameTypeDescription
xAxist3d.Vector3
yAxist3d.Vector3
zAxist3d.Vector3
Returns:
Type: 
t3d.Matrix3

fromArray(array, offsetopt) → {t3d.Matrix3}

Sets the elements of this matrix based on an array in column-major format.
Parameters:
NameTypeAttributesDefaultDescription
arrayArray.<Number>
offsetNumber<optional>
0
Returns:
Type: 
t3d.Matrix3

getInverse() → {t3d.Matrix3}

Take the inverse of the matrix
Returns:
Type: 
t3d.Matrix3

identity() → {t3d.Matrix3}

Resets this matrix to the 3x3 identity matrix
Returns:
Type: 
t3d.Matrix3

inverse() → {t3d.Matrix3}

Take the inverse of this matrix
Returns:
Type: 
t3d.Matrix3

isIdentity() → {Boolean}

Checks if the matrix is an identity matrix.
Returns:
- True if the matrix is an identity matrix, false otherwise.
Type: 
Boolean

multiply(m) → {t3d.Matrix3}

Post-multiplies this matrix by m.
Parameters:
NameTypeDescription
mt3d.Matrix3
Returns:
Type: 
t3d.Matrix3

multiplyMatrices(a, b) → {t3d.Matrix3}

Sets this matrix to a x b.
Parameters:
NameTypeDescription
at3d.Matrix3
bt3d.Matrix3
Returns:
Type: 
t3d.Matrix3

premultiply(m) → {t3d.Matrix3}

Pre-multiplies this matrix by m.
Parameters:
NameTypeDescription
mt3d.Matrix3
Returns:
Type: 
t3d.Matrix3

set(n11, n12, n13, n21, n22, n23, n31, n32, n33) → {t3d.Matrix3}

Sets the 3x3 matrix values to the given row-major sequence of values.
Parameters:
NameTypeDescription
n11Numbervalue to put in row 1, col 1.
n12Numbervalue to put in row 1, col 2.
n13Numbervalue to put in row 1, col 3.
n21Numbervalue to put in row 2, col 1.
n22Numbervalue to put in row 2, col 2.
n23Numbervalue to put in row 2, col 3.
n31Numbervalue to put in row 3, col 1.
n32Numbervalue to put in row 3, col 2.
n33Numbervalue to put in row 3, col 3.
Returns:
Type: 
t3d.Matrix3

setFromMatrix4(m) → {t3d.Matrix3}

Sets the matri3 planes from the matrix4.
Parameters:
NameTypeDescription
mt3d.Matrix4
Returns:
Type: 
t3d.Matrix3

setUvTransform(tx, ty, sx, sy, rotation, cx, cy) → {t3d.Matrix3}

Set the transformation matrix of uv coordinates
Parameters:
NameTypeDescription
txNumber
tyNumber
sxNumber
syNumber
rotationNumber
cxNumber
cyNumber
Returns:
Type: 
t3d.Matrix3

toArray(arrayopt, offsetopt) → {Array.<Number>}

Writes the elements of this matrix to an array in column-major format.
Parameters:
NameTypeAttributesDefaultDescription
arrayArray.<Number><optional>
offsetNumber<optional>
0
Returns:
Type: 
Array.<Number>

transform(x, y, scaleX, scaleY, rotation, anchorX, anchorY) → {t3d.Matrix3}

Transform 2D
Parameters:
NameTypeDescription
xNumberposition.x
yNumberposition.y
scaleXNumberscale.x
scaleYNumberscale.y
rotationNumberrotation
anchorXNumberanchor.x
anchorYNumberanchor.y
Returns:
Type: 
t3d.Matrix3

transpose() → {t3d.Matrix3}

Transposes this matrix in place.
Returns:
Type: 
t3d.Matrix3

update() → {t3d.TransformUV}

Update the matrix for UV transformation based on the offset, scale, rotation and center. If needsUpdate is false, this method will do nothing.
Returns:
This object.
Type: 
t3d.TransformUV

updateMatrix() → {t3d.TransformUV}

Update the matrix for UV transformation based on the offset, scale, rotation and center. This method will always update the matrix regardless of the needsUpdate flag.
Returns:
This object.
Type: 
t3d.TransformUV