new PhotoEditorSDK.Math.Matrix()
sdk/lib/math/matrix.js, line 22
Creates a Matrix
Members
-
staticPhotoEditorSDK.Math.Matrix.IDENTITYPhotoEditorSDK.Math.Matrix
-
The identity matrix
Methods
-
applyInverseToVector(position){PhotoEditorSDK.Math.Vector2}
sdk/lib/math/matrix.js, line 71 -
Applies the inverse of this matrix to the given vector
Name Type Description position
PhotoEditorSDK.Math.Vector2 Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
applyToVector(position){PhotoEditorSDK.Math.Vector2}
sdk/lib/math/matrix.js, line 58 -
Applies this matrix to the given vector
Name Type Description position
PhotoEditorSDK.Math.Vector2 Returns:
Type Description PhotoEditorSDK.Math.Vector2 -
multiply(matrix){PhotoEditorSDK.Math.Matrix}
sdk/lib/math/matrix.js, line 35 -
Multiplies this matrix with the given one
Name Type Description matrix
PhotoEditorSDK.Math.Matrix Returns:
Type Description PhotoEditorSDK.Math.Matrix -
rectangleToCoordinates(rectangle, anchor){Array.<PhotoEditorSDK.Math.Vector2>}
sdk/lib/math/matrix.js, line 92 -
Turns the given rectangle into vector coordinates by applying this Matrix
Name Type Description rectangle
PhotoEditorSDK.Math.Rectangle anchor
PhotoEditorSDK.Math.Vector2 Returns:
Type Description Array.<PhotoEditorSDK.Math.Vector2> -
reset()
sdk/lib/math/matrix.js, line 131 -
Resets this matrix to the identity matrix
-
toArray(){Float32Array}
sdk/lib/math/matrix.js, line 144 -
Returns an array representation of this matrix
Returns:
Type Description Float32Array -
toString(){String}
sdk/lib/math/matrix.js, line 161 -
Returns a string representation of this matrix
Returns:
Type Description String