rotate.js (670B)
1 "use strict"; 2 3 Object.defineProperty(exports, "__esModule", { 4 value: true 5 }); 6 exports.rotateDocs = void 0; 7 var rotateDocs = { 8 name: 'rotate', 9 category: 'Matrix', 10 syntax: ['rotate(w, theta)', 'rotate(w, theta, v)'], 11 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.', 12 examples: ['rotate([1, 0], math.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]))'], 13 seealso: ['matrix', 'rotationMatrix'] 14 }; 15 exports.rotateDocs = rotateDocs;