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/gfx/matrix.js

  • Provides:

    • dojox.gfx.matrix
  • dojox.gfx.matrix.identity

    • type
      dojox.gfx.matrix.Matrix2D
    • summary
      an identity matrix constant: identity * (x, y) == (x, y)
  • dojox.gfx.matrix.flipX

    • type
      dojox.gfx.matrix.Matrix2D
    • summary
      a matrix, which reflects points at x = 0 line: flipX * (x, y) == (-x, y)
  • dojox.gfx.matrix.flipY

    • type
      dojox.gfx.matrix.Matrix2D
    • summary
      a matrix, which reflects points at y = 0 line: flipY * (x, y) == (x, -y)
  • dojox.gfx.matrix.flipXY

    • type
      dojox.gfx.matrix.Matrix2D
    • summary
      a matrix, which reflects points at the origin of coordinates: flipXY * (x, y) == (-x, -y)
  • dojox.gfx.matrix.translate

    • parameters:
      • a: (typeof Number:)
        an x coordinate value
      • b: (typeof Number:)
        a y coordinate value
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      forms a translation matrix
    • description
      The resulting matrix is used to translate (move) points by specified offsets.
    • type
      Function
  • dojox.gfx.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
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      forms a scaling matrix
    • description
      The resulting matrix is used to scale (magnify) points by specified offsets.
    • type
      Function
  • dojox.gfx.matrix.rotate

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

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

    • parameters:
      • angle: (typeof Number:)
        an skewing angle in radians
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      forms an x skewing matrix
    • description
      The resulting matrix is used to skew points in the x dimension
      around the origin of coordinates (0, 0) by specified angle.
    • type
      Function
  • dojox.gfx.matrix.skewXg

    • parameters:
      • degree: (typeof Number:)
        an skewing angle in degrees
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      forms an x skewing matrix
    • description
      The resulting matrix is used to skew points in the x dimension
      around the origin of coordinates (0, 0) by specified degree.
      See dojox.gfx.matrix.skewX() for comparison.
    • type
      Function
  • dojox.gfx.matrix.skewY

    • parameters:
      • angle: (typeof Number:)
        an skewing angle in radians
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      forms a y skewing matrix
    • description
      The resulting matrix is used to skew points in the y dimension
      around the origin of coordinates (0, 0) by specified angle.
    • type
      Function
  • dojox.gfx.matrix.skewYg

    • parameters:
      • degree: (typeof Number:)
        an skewing angle in degrees
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      forms a y skewing matrix
    • description
      The resulting matrix is used to skew points in the y dimension
      around the origin of coordinates (0, 0) by specified degree.
      See dojox.gfx.matrix.skewY() for comparison.
    • type
      Function
  • dojox.gfx.matrix.reflect

    • parameters:
      • a: (typeof dojox.gfx.Point:)
        a point-like object, which specifies a vector of reflection
      • b: (typeof null)
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      forms a reflection matrix
    • description
      The resulting matrix is used to reflect points around a vector,
      which goes through the origin.
    • type
      Function
  • dojox.gfx.matrix.project

    • parameters:
      • a: (typeof dojox.gfx.Point:)
        a point-like object, which specifies a vector of projection
      • b: (typeof null)
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      forms an orthogonal projection matrix
    • description
      The resulting matrix is used to project points orthogonally on a vector,
      which goes through the origin.
    • type
      Function
  • dojox.gfx.matrix.normalize

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

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

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

    • parameters:
      • matrix: (typeof dojox.gfx.matrix.Matrix2D:)
        a 2D matrix object to be applied
      • x: (typeof Number:)
        an x coordinate of a point
      • y: (typeof Number:)
        a y coordinate of a point
    • returns
      dojox.gfx.Point
    • summary
      applies a matrix to a point
    • type
      Function
  • dojox.gfx.matrix.multiplyPoint

    • parameters:
      • matrix: (typeof dojox.gfx.matrix.Matrix2D:)
        a 2D 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
    • returns
      dojox.gfx.Point
    • summary
      applies a matrix to a point
    • type
      Function
  • dojox.gfx.matrix.multiply

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

    • parameters:
      • matrix: (typeof dojox.gfx.matrix.Matrix2D:)
        a 2D matrix-like object, which is applied at a central point
      • x: (typeof Number:)
        an x component of the central point
      • y: (typeof Number:)
        a y component of the central point
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      applies a matrix at a centrtal point
    • type
      Function
  • dojox.gfx.matrix.scaleAt

    • 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:)
        an x component of a central point
      • d: (typeof Number:)
        a y component of a central point
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      scales a picture using a specified point as a center of scaling
    • description
      Compare with dojox.gfx.matrix.scale().
    • type
      Function
  • dojox.gfx.matrix.rotateAt

    • parameters:
      • angle: (typeof Number:)
        an angle of rotation in radians (>0 for CW)
      • a: (typeof Number:)
        an x component of a central point
      • b: (typeof Number:)
        a y component of a central point
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      rotates a picture using a specified point as a center of rotation
    • description
      Compare with dojox.gfx.matrix.rotate().
    • type
      Function
  • dojox.gfx.matrix.rotategAt

    • parameters:
      • degree: (typeof Number:)
        an angle of rotation in degrees (>0 for CW)
      • a: (typeof Number:)
        an x component of a central point
      • b: (typeof Number:)
        a y component of a central point
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      rotates a picture using a specified point as a center of rotation
    • description
      Compare with dojox.gfx.matrix.rotateg().
    • type
      Function
  • dojox.gfx.matrix.skewXAt

    • parameters:
      • angle: (typeof Number:)
        an skewing angle in radians
      • a: (typeof Number:)
        an x component of a central point
      • b: (typeof Number:)
        a y component of a central point
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      skews a picture along the x axis using a specified point as a center of skewing
    • description
      Compare with dojox.gfx.matrix.skewX().
    • type
      Function
  • dojox.gfx.matrix.skewXgAt

    • parameters:
      • degree: (typeof Number:)
        an skewing angle in degrees
      • a: (typeof Number:)
        an x component of a central point
      • b: (typeof Number:)
        a y component of a central point
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      skews a picture along the x axis using a specified point as a center of skewing
    • description
      Compare with dojox.gfx.matrix.skewXg().
    • type
      Function
  • dojox.gfx.matrix.skewYAt

    • parameters:
      • angle: (typeof Number:)
        an skewing angle in radians
      • a: (typeof Number:)
        an x component of a central point
      • b: (typeof Number:)
        a y component of a central point
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      skews a picture along the y axis using a specified point as a center of skewing
    • description
      Compare with dojox.gfx.matrix.skewY().
    • type
      Function
  • dojox.gfx.matrix.skewYgAt

    • parameters:
      • degree: (typeof Number)
        Number: an skewing angle in degrees
      • a: (typeof Number||Point)
        Number: an x component of a central point
      • b: (typeof Number,)
        Number: a y component of a central point
    • returns
      dojox.gfx.matrix.Matrix2D
    • summary
      skews a picture along the y axis using a specified point as a center of skewing
    • description
      Compare with dojox.gfx.matrix.skewYg().
    • type
      Function
  • dojox.gfx.matrix

    • summary
      class constants, and methods of dojox.gfx.matrix
    • alias - dojox.gfx.matrix
  • dojox.gfx.matrix.Matrix2D

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

    • type
      Number
  • dojox.gfx.matrix.Matrix2D.xy

    • type
      Number
  • dojox.gfx.matrix.Matrix2D.yx

    • type
      Number
  • dojox.gfx.matrix.Matrix2D.yy

    • type
      Number
  • dojox.gfx.matrix.Matrix2D.dx

    • type
      Number
  • dojox.gfx.matrix.Matrix2D.dy

    • type
      Number
  • dojox.gfx.matrix._degToRad

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

    • parameters:
      • radian
    • type
      Function
  • dojox.gfx.Matrix2D

    • alias - dojox.gfx.matrix.Matrix2D
  • dojox.gfx

    • type
      Object
  • dojox

    • type
      Object