---
title: Namespace: common
source: https://vjmap.com/en/doc/Namespace_common.html
---

# Namespace: common

### Table of contents

#### Type aliases

- [mat2dtype](#mat2dtype)
- [mat3type](#mat3type)
- [mat4type](#mat4type)
- [quattype](#quattype)
- [vec2type](#vec2type)
- [vec3type](#vec3type)
- [vec4type](#vec4type)

#### Variables

- [EPSILON](#epsilon)

#### Functions

- [equals](#equals)
- [toRadian](#toradian)

### 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*


<a name="modulesdefaultdommd"></a>

[vjmap](#readmemd) / [Exports](#modulesmd) / [default](#modulesdefaultmd) / Dom
