modeling/src/operations/transforms/index.js

  1. /**
  2. * All shapes (primitives or the results of operations) can be transformed, such as scaled or rotated.
  3. * In all cases, the function returns the results, and never changes the original shapes.
  4. * @module modeling/transforms
  5. * @example
  6. * const { center, rotateX, translate } = require('@jscad/modeling').transforms
  7. */
  8. module.exports = {
  9. align: require('./align'),
  10. center: require('./center').center,
  11. centerX: require('./center').centerX,
  12. centerY: require('./center').centerY,
  13. centerZ: require('./center').centerZ,
  14. mirror: require('./mirror').mirror,
  15. mirrorX: require('./mirror').mirrorX,
  16. mirrorY: require('./mirror').mirrorY,
  17. mirrorZ: require('./mirror').mirrorZ,
  18. rotate: require('./rotate').rotate,
  19. rotateX: require('./rotate').rotateX,
  20. rotateY: require('./rotate').rotateY,
  21. rotateZ: require('./rotate').rotateZ,
  22. scale: require('./scale').scale,
  23. scaleX: require('./scale').scaleX,
  24. scaleY: require('./scale').scaleY,
  25. scaleZ: require('./scale').scaleZ,
  26. transform: require('./transform'),
  27. translate: require('./translate').translate,
  28. translateX: require('./translate').translateX,
  29. translateY: require('./translate').translateY,
  30. translateZ: require('./translate').translateZ
  31. }