simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

rotationMatrix.js (680B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.rotationMatrixDocs = void 0;
      7 var rotationMatrixDocs = {
      8   name: 'rotationMatrix',
      9   category: 'Matrix',
     10   syntax: ['rotationMatrix(theta)', 'rotationMatrix(theta, v)', 'rotationMatrix(theta, v, format)'],
     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: ['rotationMatrix(pi / 2)', 'rotationMatrix(unit("45deg"), [0, 0, 1])', 'rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],
     13   seealso: ['cos', 'sin']
     14 };
     15 exports.rotationMatrixDocs = rotationMatrixDocs;