modeling/maths

Maths are computational units for fundamental Euclidean geometry. All maths operate upon array data structures. Note: Maths data structues are consider 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 } = require('@jscad/modeling').maths

Members

(static, constant) EPS

Source:
Default Value:
  • 0.00001

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

(static, constant) spatialResolution

Source:
Default Value:
  • 100000

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