SymmetricMatrix3
A symmetric 3x3 matrix.
Static Method Summary
| Static Public Methods | ||
| public static |
calculateIndex(i: Number, j: Number): Number Calculates the linear index of an element from this matrix. |
|
Constructor Summary
| Public Constructor | ||
| public |
Constructs a new symmetric matrix. |
|
Member Summary
| Public Members | ||
| public |
The matrix elements. |
|
Method Summary
| Public Methods | ||
| public |
Adds the values of a given symmetric matrix to this one. |
|
| public |
applyToVector3(v: Vector3): Vector3 Applies this symmetric matrix to a vector. |
|
| public |
Clones this matrix. |
|
| public |
Copies the values of a given symmetric matrix. |
|
| public |
Checks if this matrix equals the given one. |
|
| public |
Sets this matrix to the identity matrix. |
|
| public |
Calculates the Frobenius norm of this matrix. |
|
| public |
Calculates the absolute sum of all matrix components except for the main diagonal. |
|
| public |
Sets the values of this matrix. |
|
| public |
Copies this symmetric matrix into a given 3x3 matrix. |
|
Static Public Methods
Public Constructors
Public Members
Public Methods
public add(m: SymmetricMatrix3): SymmetricMatrix3 source
Adds the values of a given symmetric matrix to this one.
Params:
| Name | Type | Attribute | Description |
| m | SymmetricMatrix3 | A matrix. |
public applyToVector3(v: Vector3): Vector3 source
Applies this symmetric matrix to a vector.
Params:
| Name | Type | Attribute | Description |
| v | Vector3 | The vector to modify. |
public copy(m: SymmetricMatrix3): SymmetricMatrix3 source
Copies the values of a given symmetric matrix.
Params:
| Name | Type | Attribute | Description |
| m | SymmetricMatrix3 | A matrix. |
public equals(m: SymmetricMatrix3): Boolean source
Checks if this matrix equals the given one.
Params:
| Name | Type | Attribute | Description |
| m | SymmetricMatrix3 | A matrix. |
public off(): Number source
Calculates the absolute sum of all matrix components except for the main diagonal.
public set(m00: Number, m01: Number, m02: Number, m11: Number, m12: Number, m22: Number): SymmetricMatrix3 source
Sets the values of this matrix.
Params:
| Name | Type | Attribute | Description |
| m00 | Number | The value of the first row, first column. |
|
| m01 | Number | The value of the first row, second column and the second row, first column. |
|
| m02 | Number | The value of the first row, third column and the third row, first column. |
|
| m11 | Number | The value of the second row, second column. |
|
| m12 | Number | The value of the second row, third column and third row, second column. |
|
| m22 | Number | The value of the third row, third column. |
