Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/gfx3d/matrix.js

  • Provides:

    • dojox.gfx3d.matrix
  • dojox.gfx3d.matrix.identity

    • type
      dojox.gfx3d.matrix.Matrix3D
    • summary
      an identity matrix constant: identity * (x, y, z) == (x, y, z)
  • dojox.gfx3d.matrix.translate

    • parameters:
      • a: (typeof Number:)
        an x coordinate value
      • b: (typeof Number:)
        a y coordinate value
      • c: (typeof Number:)
        a z coordinate value
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a translation matrix
    • description
      The resulting matrix is used to translate (move) points by specified offsets.
    • type
      Function
  • dojox.gfx3d.matrix.scale

    • parameters:
      • a: (typeof Number:)
        a scaling factor used for the x coordinate
      • b: (typeof Number:)
        a scaling factor used for the y coordinate
      • c: (typeof Number:)
        a scaling factor used for the z coordinate
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a scaling matrix
    • description
      The resulting matrix is used to scale (magnify) points by specified offsets.
    • type
      Function
  • dojox.gfx3d.matrix.rotateX

    • parameters:
      • angle: (typeof Number:)
        an angle of rotation in radians (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the x axis)
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified angle.
    • type
      Function
  • dojox.gfx3d.matrix.rotateXg

    • parameters:
      • degree: (typeof Number:)
        an angle of rotation in degrees (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the x axis)
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified degree.
      See dojox.gfx3d.matrix.rotateX() for comparison.
    • type
      Function
  • dojox.gfx3d.matrix.rotateY

    • parameters:
      • angle: (typeof Number:)
        an angle of rotation in radians (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the y axis)
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified angle.
    • type
      Function
  • dojox.gfx3d.matrix.rotateYg

    • parameters:
      • degree: (typeof Number:)
        an angle of rotation in degrees (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the y axis)
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified degree.
      See dojox.gfx3d.matrix.rotateY() for comparison.
    • type
      Function
  • dojox.gfx3d.matrix.rotateZ

    • parameters:
      • angle: (typeof Number:)
        an angle of rotation in radians (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the z axis)
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified angle.
    • type
      Function
  • dojox.gfx3d.matrix.rotateZg

    • parameters:
      • degree: (typeof Number:)
        an angle of rotation in degrees (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the z axis)
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified degree.
      See dojox.gfx3d.matrix.rotateZ() for comparison.
    • type
      Function
  • dojox.gfx3d.matrix.cameraTranslate

    • parameters:
      • a: (typeof Number:)
        an x coordinate value
      • b: (typeof Number:)
        a y coordinate value
      • c: (typeof Number:)
        a z coordinate value
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a translation matrix
    • description
      The resulting matrix is used to translate (move) points by specified offsets.
    • type
      Function
  • dojox.gfx3d.matrix.cameraRotateX

    • parameters:
      • angle: (typeof Number:)
        an angle of rotation in radians (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the x axis) in cameraTransform manner
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified angle.
    • type
      Function
  • dojox.gfx3d.matrix.cameraRotateXg

    • parameters:
      • degree: (typeof Number:)
        an angle of rotation in degrees (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the x axis)in cameraTransform manner
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified degree.
      See dojox.gfx3d.matrix.rotateX() for comparison.
    • type
      Function
  • dojox.gfx3d.matrix.cameraRotateY

    • parameters:
      • angle: (typeof Number:)
        an angle of rotation in radians (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the y axis) in cameraTransform manner
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified angle.
    • type
      Function
  • dojox.gfx3d.matrix.cameraRotateYg

    • parameters:
      • degree: (typeof Number:)
        an angle of rotation in degrees (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the y axis) in cameraTransform manner
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified degree.
      See dojox.gfx3d.matrix.rotateY() for comparison.
    • type
      Function
  • dojox.gfx3d.matrix.cameraRotateZ

    • parameters:
      • angle: (typeof Number:)
        an angle of rotation in radians (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the z axis) in cameraTransform manner
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified angle.
    • type
      Function
  • dojox.gfx3d.matrix.cameraRotateZg

    • parameters:
      • degree: (typeof Number:)
        an angle of rotation in degrees (>0 for CW)
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      forms a rotating matrix (about the z axis) in cameraTransform manner
    • description
      The resulting matrix is used to rotate points
      around the origin of coordinates (0, 0) by specified degree.
      See dojox.gfx3d.matrix.rotateZ() for comparison.
    • type
      Function
  • dojox.gfx3d.matrix.normalize

    • parameters:
      • matrix: (typeof Object:)
        an object, which is converted to a matrix, if necessary
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      converts an object to a matrix, if necessary
    • description
      Converts any 3D matrix-like object or an array of
      such objects to a valid dojox.gfx3d.matrix.Matrix3D object.
    • type
      Function
  • dojox.gfx3d.matrix.clone

    • parameters:
      • matrix: (typeof dojox.gfx3d.matrix.Matrix3D:)
        a 3D matrix-like object to be cloned
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      creates a copy of a 3D matrix
    • type
      Function
  • dojox.gfx3d.matrix.invert

    • parameters:
      • matrix: (typeof dojox.gfx.matrix.Matrix3D:)
        a 2D matrix-like object to be inverted
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      inverts a 2D matrix
    • type
      Function
  • dojox.gfx3d.matrix._multiplyPoint

    • parameters:
      • m
      • x: (typeof Number:)
        an x coordinate of a point
      • y: (typeof Number:)
        a y coordinate of a point
      • z: (typeof Number:)
        a z coordinate of a point
    • returns
      Object
    • summary
      applies a matrix to a point
      matrix: dojox.gfx3d.matrix.Matrix3D: a 3D matrix object to be applied
    • type
      Function
  • dojox.gfx3d.matrix.multiplyPoint

    • parameters:
      • matrix: (typeof dojox.gfx3d.matrix.Matrix3D:)
        a 3D matrix object to be applied
      • a: (typeof Number||Point)
        Number: an x coordinate of a point
      • b: (typeof Number,)
        Number: a y coordinate of a point
      • c: (typeof Number,)
        Number: a z coordinate of a point
    • returns
      Object
    • summary
      applies a matrix to a point
    • type
      Function
  • dojox.gfx3d.matrix.multiply

    • parameters:
      • matrix: (typeof dojox.gfx3d.matrix.Matrix3D:)
        a 3D matrix-like object,
        all subsequent arguments are matrix-like objects too
    • returns
      dojox.gfx3d.matrix.Matrix3D
    • summary
      combines matrices by multiplying them sequentially in the given order
    • type
      Function
  • dojox.gfx3d.matrix._project

    • parameters:
      • m
      • x: (typeof Number:)
        an x coordinate of a point
      • y: (typeof Number:)
        a y coordinate of a point
      • z: (typeof Number:)
        a z coordinate of a point
    • returns
      Object
    • summary
      applies a matrix to a point
      matrix: dojox.gfx3d.matrix.Matrix3D: a 3D matrix object to be applied
    • type
      Function
  • dojox.gfx3d.matrix.project

    • parameters:
      • matrix: (typeof dojox.gfx3d.matrix.Matrix3D:)
        a 3D matrix object to be applied
      • a: (typeof Number||Point)
        Number: an x coordinate of a point
      • b: (typeof Number,)
        Number: a y coordinate of a point
      • c: (typeof Number,)
        Number: a z coordinate of a point
    • returns
      Object
    • summary
      applies a matrix to a point
    • type
      Function
  • dojox.gfx3d.matrix

    • summary
      class constants, and methods of dojox.gfx3d.matrix
  • dojox.gfx3d.matrix.Matrix3D

    • type
      Function
    • parameters:
      • arg: (typeof Object)
        a 3D matrix-like object, a number, or an array of such objects
    • summary
      a 3D matrix object
    • description
      Normalizes a 3D matrix-like object. If arrays is passed,
      all objects of the array are normalized and multiplied sequentially.
  • dojox.gfx3d.matrix.Matrix3D.xx

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.xy

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.xz

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.yx

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.yy

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.yz

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.zx

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.zy

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.zz

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.dx

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.dy

    • type
      Number
  • dojox.gfx3d.matrix.Matrix3D.dz

    • type
      Number
  • dojox.gfx3d.matrix._degToRad

    • parameters:
      • degree
    • type
      Function
  • dojox.gfx3d.matrix._radToDeg

    • parameters:
      • radian
    • type
      Function
  • dojox.gfx3d.Matrix3D

    • alias - dojox.gfx3d.matrix.Matrix3D
  • dojox.gfx3d

    • type
      Object
  • dojox

    • type
      Object