See the dojox/gfx3d/_base.matrix reference documentation for more information.
an identity matrix constant: identity * (x, y, z) == (x, y, z)
applies a matrix to a point
Parameter | Type | Description |
---|---|---|
m | undefined | |
x | Number | an x coordinate of a point |
y | Number | a y coordinate of a point |
z | Number | a z coordinate of a point |
applies a matrix to a point
Parameter | Type | Description |
---|---|---|
m | undefined | |
x | Number | an x coordinate of a point |
y | Number | a y coordinate of a point |
z | Number | a z coordinate of a point |
forms a rotating matrix (about the x axis) in cameraTransform manner
The resulting matrix is used to rotate points around the origin of coordinates (0, 0) by specified angle.
Parameter | Type | Description |
---|---|---|
angle | Number | an angle of rotation in radians (>0 for CW) |
forms a rotating matrix (about the x axis)in cameraTransform manner
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.
Parameter | Type | Description |
---|---|---|
degree | Number | an angle of rotation in degrees (>0 for CW) |
forms a rotating matrix (about the y axis) in cameraTransform manner
The resulting matrix is used to rotate points around the origin of coordinates (0, 0) by specified angle.
Parameter | Type | Description |
---|---|---|
angle | Number | an angle of rotation in radians (>0 for CW) |
forms a rotating matrix (about the y axis) in cameraTransform manner
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.
Parameter | Type | Description |
---|---|---|
degree | Number | an angle of rotation in degrees (>0 for CW) |
forms a rotating matrix (about the z axis) in cameraTransform manner
The resulting matrix is used to rotate points around the origin of coordinates (0, 0) by specified angle.
Parameter | Type | Description |
---|---|---|
angle | Number | an angle of rotation in radians (>0 for CW) |
forms a rotating matrix (about the z axis) in cameraTransform manner
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.
Parameter | Type | Description |
---|---|---|
degree | Number | an angle of rotation in degrees (>0 for CW) |
forms a translation matrix
The resulting matrix is used to translate (move) points by specified offsets.
Parameter | Type | Description |
---|---|---|
a | Number | Object | an x coordinate value, or a point-like object, which specifies offsets for 3 dimensions |
b | Number |
Optional a y coordinate value |
c | Number |
Optional a z coordinate value |
creates a copy of a 3D matrix
Parameter | Type | Description |
---|---|---|
matrix | Object | a 3D matrix-like object to be cloned |
inverts a 2D matrix
Parameter | Type | Description |
---|---|---|
matrix | Object | a 3D matrix object to be applied |
a 3D matrix object
Normalizes a 3D matrix-like object. If arrays is passed, all objects of the array are normalized and multiplied sequentially.
Parameter | Type | Description |
---|---|---|
arg | Object | a 3D matrix-like object, a number, or an array of such objects |
combines matrices by multiplying them sequentially in the given order
Parameter | Type | Description |
---|---|---|
matrix | Object | a 3D matrix object to be applied |
applies a matrix to a point
Parameter | Type | Description |
---|---|---|
matrix | Object | a 3D matrix object to be applied |
a | Number | Object | an x coordinate of a point, or an Object specifying the whole point |
b | Number |
Optional a y coordinate of a point |
c | Number |
Optional a z coordinate of a point |
converts an object to a matrix, if necessary
Converts any 3D matrix-like object or an array of such objects to a valid dojox.gfx3d.matrix.Matrix3D object.
Parameter | Type | Description |
---|---|---|
matrix | Object | an object, which is converted to a matrix, if necessary |
applies a matrix to a point
Parameter | Type | Description |
---|---|---|
matrix | Object | a 3D matrix object to be applied |
a | Number | Point | an x coordinate of a point, or an Object specifying the whole point |
b | Number |
Optional a y coordinate of a point |
c | Number |
Optional a z coordinate of a point |
forms a rotating matrix (about the x axis)
The resulting matrix is used to rotate points around the origin of coordinates (0, 0) by specified angle.
Parameter | Type | Description |
---|---|---|
angle | Number | an angle of rotation in radians (>0 for CW) |
forms a rotating matrix (about the x axis)
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.
Parameter | Type | Description |
---|---|---|
degree | Number | an angle of rotation in degrees (>0 for CW) |
forms a rotating matrix (about the y axis)
The resulting matrix is used to rotate points around the origin of coordinates (0, 0) by specified angle.
Parameter | Type | Description |
---|---|---|
angle | Number | an angle of rotation in radians (>0 for CW) |
forms a rotating matrix (about the y axis)
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.
Parameter | Type | Description |
---|---|---|
degree | Number | an angle of rotation in degrees (>0 for CW) |
forms a rotating matrix (about the z axis)
The resulting matrix is used to rotate points around the origin of coordinates (0, 0) by specified angle.
Parameter | Type | Description |
---|---|---|
angle | Number | an angle of rotation in radians (>0 for CW) |
forms a rotating matrix (about the z axis)
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.
Parameter | Type | Description |
---|---|---|
degree | Number | an angle of rotation in degrees (>0 for CW) |
forms a scaling matrix
The resulting matrix is used to scale (magnify) points by specified offsets.
Parameter | Type | Description |
---|---|---|
a | Number | Object | a scaling factor used for the x coordinate, or a uniform scaling factor used for the all coordinates, or a point-like object, which specifies scale factors for 3 dimensions |
b | Number |
Optional a scaling factor used for the y coordinate |
c | Number |
Optional a scaling factor used for the z coordinate |
forms a translation matrix
The resulting matrix is used to translate (move) points by specified offsets.
Parameter | Type | Description |
---|---|---|
a | Number | Object | an x coordinate value, or a point-like object, which specifies offsets for 3 dimensions |
b | Number |
Optional a y coordinate value |
c | Number |
Optional a z coordinate value |