modeling/src/maths/index.js

  1. /**
  2. * Maths are computational units for fundamental Euclidean geometry. All maths operate upon array data structures.
  3. * Note: Maths data structures are considered immutable, so never change the contents directly.
  4. * @see Most computations are based upon the glMatrix library (glmatrix.net)
  5. * @module modeling/maths
  6. * @example
  7. * const { constants, line2, mat4, vec2, vec3 } = require('@jscad/modeling').maths
  8. */
  9. module.exports = {
  10. constants: require('./constants'),
  11. line2: require('./line2'),
  12. line3: require('./line3'),
  13. mat4: require('./mat4'),
  14. plane: require('./plane'),
  15. utils: require('./utils'),
  16. vec2: require('./vec2'),
  17. vec3: require('./vec3'),
  18. vec4: require('./vec4')
  19. }