SCNMatrix4
A representation of a 4 x 4 matrix.
Static Method Summary
| Static Public Methods | ||
| public static | matrixWithOrientation(orientation: *): * | |
| public static | matrixWithRotation(x: number, y: number, z: number, w: number): SCNMatrix4 | |
| public static | matrixWithScale(x: number, y: number, z: number): SCNMatrix4 | |
| public static | matrixWithTranslation(x: number, y: number, z: number): SCNMatrix4 | |
Constructor Summary
| Public Constructor | ||
| public | constructor(m: number[][]) | |
Member Summary
| Public Members | ||
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
Method Summary
| Public Methods | ||
| public | add(m: SCNMatrix4): SCNMatrix4 | |
| public | equalTo(m: SCNMatrix4): boolean This function performs a numeric (not bitwise) comparison of each pair of elements. | |
| public |  | |
| public |  | |
| public | floatArray(): number[] | |
| public | floatArray3x4f(): number[] | |
| public |  | |
| public |  | |
| public |  | |
| public |  | |
| public | invert(): SCNMatrix4 | |
| public | Returns a Boolean value that indicates whether the matrix is equal to the identity matrix. | |
| public | lerp(m: SCNMatrix4, rate: number): SCNMatrix4 | |
| public | mul(t: number): SCNMatrix4 | |
| public | mult(m: SCNMatrix4): SCNMatrix4 | |
| public |  | |
| public |  | |
| public | scale(x: number, y: number, z: number): SCNMatrix4 | |
| public | translation(x: number, y: number, z: number): SCNMatrix4 | |
| public |  | |
Static Public Methods
public static matrixWithOrientation(orientation: *): * source
Params:
| Name | Type | Attribute | Description | 
| orientation | * | 
Return:
| * | 
public static matrixWithScale(x: number, y: number, z: number): SCNMatrix4 source
public static matrixWithTranslation(x: number, y: number, z: number): SCNMatrix4 source
Public Constructors
public constructor(m: number[][]) source
Params:
| Name | Type | Attribute | Description | 
| m | number[][] | 
 | 
Public Members
Public Methods
public add(m: SCNMatrix4): SCNMatrix4 source
Params:
| Name | Type | Attribute | Description | 
| m | SCNMatrix4 | 
public equalTo(m: SCNMatrix4): boolean source
This function performs a numeric (not bitwise) comparison of each pair of elements.
Params:
| Name | Type | Attribute | Description | 
| m | SCNMatrix4 | 
public isIdentity(): boolean source
Returns a Boolean value that indicates whether the matrix is equal to the identity matrix.
public lerp(m: SCNMatrix4, rate: number): SCNMatrix4 source
Params:
| Name | Type | Attribute | Description | 
| m | SCNMatrix4 | ||
| rate | number | 
public mul(t: number): SCNMatrix4 source
Params:
| Name | Type | Attribute | Description | 
| t | number | 
public mult(m: SCNMatrix4): SCNMatrix4 source
Params:
| Name | Type | Attribute | Description | 
| m | SCNMatrix4 | 
