rotate.js 665 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.rotateDocs = void 0;
  6. var rotateDocs = {
  7. name: 'rotate',
  8. category: 'Matrix',
  9. syntax: ['rotate(w, theta)', 'rotate(w, theta, v)'],
  10. description: 'Returns a 2-D rotation matrix (2x2) for a given angle (in radians). ' + 'Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.',
  11. examples: ['rotate([1, 0], pi / 2)', 'rotate(matrix([1, 0]), unit("35deg"))', 'rotate([1, 0, 0], unit("90deg"), [0, 0, 1])', 'rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],
  12. seealso: ['matrix', 'rotationMatrix']
  13. };
  14. exports.rotateDocs = rotateDocs;