# Namespace: common
# Table of contents
# Type aliases
# Variables
# Functions
# Type aliases
# mat2dtype
Ƭ mat2dtype: number[] | Float32Array
# mat3type
Ƭ mat3type: number[] | Float32Array
# mat4type
Ƭ mat4type: number[] | Float32Array
# quattype
Ƭ quattype: number[] | Float32Array
# vec2type
Ƭ vec2type: number[] | Float32Array
# vec3type
Ƭ vec3type: number[] | Float32Array
# vec4type
Ƭ vec4type: number[] | Float32Array
# Variables
# EPSILON
• Const
EPSILON: 1e-8
= 0.00000001
# Functions
# equals
▸ equals(a
: number, b
: number): 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. |
Returns: boolean
True if the numbers are approximately equal, false otherwise.
# toRadian
▸ toRadian(a
: number): number
Convert Degree To Radian
# Parameters
Name | Type | Description |
---|---|---|
a | number | Angle in Degrees |
Returns: number