Methods
(static) equals(a, b, tolerance) → {Boolean}
Tests whether or not the arguments have approximately the same value, within an absolute
or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less
than or equal to 1.0, and a relative tolerance is used for larger values)
Parameters:
Name | Type | Description |
---|---|---|
a |
Number | The first number to test. |
b |
Number | The second number to test. |
tolerance |
Number | Absolute or relative tolerance (default glMatrix.EPSILON) |
Returns:
True if the numbers are approximately equal, false otherwise.
- Type
- Boolean
(static) round(a)
Symmetric round
see https://www.npmjs.com/package/round-half-up-symmetric#user-content-detailed-background
Parameters:
Name | Type | Description |
---|---|---|
a |
Number | value to round |
(static) setMatrixArrayType(type)
Sets the type of array used when creating new vectors and matrices
Parameters:
Name | Type | Description |
---|---|---|
type |
Float32ArrayConstructor | ArrayConstructor | Array type, such as Float32Array or Array |
(static) toDegree(a)
Convert Radian To Degree
Parameters:
Name | Type | Description |
---|---|---|
a |
Number | Angle in Radians |
(static) toRadian(a)
Convert Degree To Radian
Parameters:
Name | Type | Description |
---|---|---|
a |
Number | Angle in Degrees |