Package | away3d.core.math |
Class | public final class Matrix3D |
Property | Defined by | ||
---|---|---|---|
det : Number [read-only]
Returns the 3d matrix object's determinant.
| Matrix3D | ||
position : Number3D
[read-only]
Returns a 3d number representing the translation imposed by the 3dmatrix.
| Matrix3D | ||
sxx : Number
The value in the first row and first column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
sxy : Number
The value in the first row and second column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
sxz : Number
The value in the first row and third column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
syx : Number
The value in the second row and first column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
syy : Number
The value in the second row and second column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
syz : Number
The value in the second row and third column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
szx : Number
The value in the third row and first column of the Matrix object,
which affects the rotation and scaling of a 3d object.
| Matrix3D | ||
szy : Number
The value in the third row and second column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
szz : Number
The value in the third row and third column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
tx : Number
The value in the first row and forth column of the Matrix object,
which affects the positioning along the x axis of a 3d object.
| Matrix3D | ||
ty : Number
The value in the second row and fourth column of the Matrix object,
which affects the positioning along the y axis of a 3d object.
| Matrix3D | ||
tz : Number
The value in the third row and fourth column of the Matrix object,
which affects the positioning along the z axis of a 3d object.
| Matrix3D |
Method | Defined by | ||
---|---|---|---|
Matrix3D
()
Creates a new
Matrix3D object. | Matrix3D | ||
array2matrix(ar:Array):void
Fills the 3d matrix object with values from an array with 3d matrix values
ordered from right to left and up to down.
| Matrix3D | ||
Fill the 3d matrix with all matrix values of the given 3d matrix.
| Matrix3D | ||
Fill the 3d matrix with the 3x3 rotation matrix section of the given 3d matrix.
| Matrix3D | ||
Fills the 3d matrix object with the result from the inverse calulation of the given 3d matrix.
| Matrix3D | ||
Returns the euler angle represented by the 3x3 matrix rotation.
| Matrix3D | ||
Fills the 3d matrix object with the result from a 3x4 multipication of two 3d matrix objects.
| Matrix3D | ||
Fills the 3d matrix object with the result from a 3x3 multipication of two 3d matrix objects.
| Matrix3D | ||
Fills the 3d matrix object with values representing the transformation made by the given quaternion.
| Matrix3D | ||
rotationMatrix(u:Number, v:Number, w:Number, angle:Number):void
Fills the 3d matrix object with values representing the given rotation around a vector.
| Matrix3D | ||
scale(x:Number, y:Number, z:Number):void
Scales the 3d matrix by the given amount in each dimension
| Matrix3D | ||
scaleMatrix(u:Number, v:Number, w:Number):void
Fills the 3d matrix object with values representing the given scaling.
| Matrix3D | ||
toString():String
Used to trace the values of a 3d matrix.
| Matrix3D | ||
translationMatrix(u:Number, v:Number, w:Number):void
Fills the 3d matrix object with values representing the given translation.
| Matrix3D |
det | property |
det:Number
[read-only]Returns the 3d matrix object's determinant.
Implementation public function get det():Number
position | property |
position:Number3D
[read-only]Returns a 3d number representing the translation imposed by the 3dmatrix.
Implementation public function get position():Number3D
sxx | property |
public var sxx:Number
The value in the first row and first column of the Matrix object, which affect the rotation and scaling of a 3d object.
sxy | property |
public var sxy:Number
The value in the first row and second column of the Matrix object, which affect the rotation and scaling of a 3d object.
sxz | property |
public var sxz:Number
The value in the first row and third column of the Matrix object, which affect the rotation and scaling of a 3d object.
syx | property |
public var syx:Number
The value in the second row and first column of the Matrix object, which affect the rotation and scaling of a 3d object.
syy | property |
public var syy:Number
The value in the second row and second column of the Matrix object, which affect the rotation and scaling of a 3d object.
syz | property |
public var syz:Number
The value in the second row and third column of the Matrix object, which affect the rotation and scaling of a 3d object.
szx | property |
public var szx:Number
The value in the third row and first column of the Matrix object, which affects the rotation and scaling of a 3d object.
szy | property |
public var szy:Number
The value in the third row and second column of the Matrix object, which affect the rotation and scaling of a 3d object.
szz | property |
public var szz:Number
The value in the third row and third column of the Matrix object, which affect the rotation and scaling of a 3d object.
tx | property |
public var tx:Number
The value in the first row and forth column of the Matrix object, which affects the positioning along the x axis of a 3d object.
ty | property |
public var ty:Number
The value in the second row and fourth column of the Matrix object, which affects the positioning along the y axis of a 3d object.
tz | property |
public var tz:Number
The value in the third row and fourth column of the Matrix object, which affects the positioning along the z axis of a 3d object.
Matrix3D | () | constructor |
public function Matrix3D()
####INIT####
array2matrix | () | method |
public function array2matrix(ar:Array):void
Fills the 3d matrix object with values from an array with 3d matrix values ordered from right to left and up to down.
Parametersar:Array |
clone | () | method |
public function clone(m:Matrix3D):Matrix3D
Fill the 3d matrix with all matrix values of the given 3d matrix.
Parametersm:Matrix3D — THe 3d matrix to copy from.
|
Matrix3D |
copy3x3 | () | method |
public function copy3x3(m:Matrix3D):Matrix3D
Fill the 3d matrix with the 3x3 rotation matrix section of the given 3d matrix.
Parametersm:Matrix3D — THe 3d matrix to copy from.
|
Matrix3D |
inverse | () | method |
public function inverse(m:Matrix3D):void
Fills the 3d matrix object with the result from the inverse calulation of the given 3d matrix.
Parametersm:Matrix3D — The 3d matrix object used for the inverse calulation.
|
matrix2euler | () | method |
public function matrix2euler():Number3D
Returns the euler angle represented by the 3x3 matrix rotation.
ReturnsNumber3D —
A 3d number representing the 3 euler angles.
|
multiply | () | method |
public function multiply(m1:Matrix3D, m2:Matrix3D):void
Fills the 3d matrix object with the result from a 3x4 multipication of two 3d matrix objects.
Parametersm1:Matrix3D — The first 3d matrix in the multipication.
|
|
m2:Matrix3D |
multiply3x3 | () | method |
public function multiply3x3(m1:Matrix3D, m2:Matrix3D):void
Fills the 3d matrix object with the result from a 3x3 multipication of two 3d matrix objects. The translation values are taken from the first matrix.
Parametersm1:Matrix3D — The first 3d matrix in the multipication.
|
|
m2:Matrix3D |
quaternion2matrix | () | method |
public function quaternion2matrix(quarternion:Quaternion):void
Fills the 3d matrix object with values representing the transformation made by the given quaternion.
Parametersquarternion:Quaternion — The quarterion object to convert.
|
rotationMatrix | () | method |
public function rotationMatrix(u:Number, v:Number, w:Number, angle:Number):void
Fills the 3d matrix object with values representing the given rotation around a vector.
Parametersu:Number — The x value of the rotation vector.
|
|
v:Number — The y value of the rotation vector.
|
|
w:Number — The z value of the rotation vector.
|
|
angle:Number — The angle in radians of the rotation.
|
scale | () | method |
public function scale(x:Number, y:Number, z:Number):void
Scales the 3d matrix by the given amount in each dimension
Parametersx:Number — The scale value along the x axis.
|
|
y:Number — The scale value along the y axis.
|
|
z:Number — The scale value along the z axis.
|
scaleMatrix | () | method |
public function scaleMatrix(u:Number, v:Number, w:Number):void
Fills the 3d matrix object with values representing the given scaling.
Parametersu:Number — The scale along the x axis.
|
|
v:Number — The scale along the y axis.
|
|
w:Number — The scale along the z axis..
|
toString | () | method |
public function toString():String
Used to trace the values of a 3d matrix.
ReturnsString — A string representation of the 3d matrix object.
|
translationMatrix | () | method |
public function translationMatrix(u:Number, v:Number, w:Number):void
Fills the 3d matrix object with values representing the given translation.
Parametersu:Number — The translation along the x axis.
|
|
v:Number — The translation along the y axis.
|
|
w:Number — The translation along the z axis..
|