Module: modeling/maths

Maths are computational units for fundamental Euclidean geometry. All maths operate upon array data structures. Note: Maths data structures are considered immutable, so never change the contents directly.

Source:
See:
  • Most computations are based upon the glMatrix library (glmatrix.net)
Example
const { constants, line2, mat4, vec2, vec3 } = this.maths

Members

(static, constant) EPS

Epsilon used during determination of near zero distances. This should be 1 / spacialResolution.

Default Value:
  • 0.00001
Source:

(static, constant) NEPS

Smaller epsilon used for measuring near zero distances.

Default Value:
  • 1e-13
Source:

(static, constant) spatialResolution

The resolution of space, currently one hundred nanometers. This should be 1 / EPS.

Default Value:
  • 100000
Source: