| Package | away3d.core.math |
| Class | public final class Matrix3D |
| Property | Defined by | ||
|---|---|---|---|
| det : Number [read-only]
Returns the 3d matrix object's determinant.
| Matrix3D | ||
| det4x4 : Number [read-only]
| Matrix3D | ||
| forward : Number3D
Returns a Number3D representing the forward vector of this matrix.
| Matrix3D | ||
| position : Number3D
[read-only]
Returns a 3d number representing the translation imposed by the 3dmatrix.
| Matrix3D | ||
| right : Number3D
Returns a Number3D representing the right vector of this matrix.
| Matrix3D | ||
| swx : Number = 0
The value in the 4th row and first column of the Matrix object,
--
| Matrix3D | ||
| swy : Number = 0
The value in the 4th row and second column of the Matrix object,
--
| Matrix3D | ||
| swz : Number = 0
The value in the 4th row and third column of the Matrix object,
--
| Matrix3D | ||
| sxx : Number = 1
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 = 0
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 = 0
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 = 0
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 = 1
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 = 0
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 = 0
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 = 0
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 = 1
The value in the third row and third column of the Matrix object,
which affect the rotation and scaling of a 3d object.
| Matrix3D | ||
| tw : Number = 1
The value in the 4th row and 4th column of the Matrix object,
--
| Matrix3D | ||
| tx : Number = 0
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 = 0
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 = 0
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 | ||
| up : Number3D
Returns a Number3D representing the up vector of this matrix.
| Matrix3D | ||
| Method | Defined by | ||
|---|---|---|---|
|
Matrix3D
()
Creates a new
Matrix3D object. | Matrix3D | ||
|
array2matrix(ar:Array, yUp:Boolean, scaling:Number):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 | ||
|
clear():void
Clears the 3d matrix object and fills it with the identity matrix.
| Matrix3D | ||
|
Fill the 3d matrix with all matrix values of the given 3d matrix.
| Matrix3D | ||
| 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 3x3 calulation of the given 3d matrix.
| Matrix3D | ||
|
Fills the 3d matrix object with the result from the inverse 4x4 calulation of the given 3d matrix.
| 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 the result from a 4x3 multipication of two 3d matrix objects.
| Matrix3D | ||
|
Fills the 3d matrix object with the result from a 4x4 multipication of two 3d matrix objects.
| Matrix3D | ||
| Matrix3D | |||
|
normalizes the axis vectors of the given 3d matrix.
| Matrix3D | ||
|
orthographicProjectionMatrix(left:Number, right:Number, bottom:Number, top:Number, near:Number, far:Number):void
Fills the 3d matrix with a 4x4 transformation that produces an orthographic projection.
| Matrix3D | ||
|
perspectiveProjectionMatrix(fov:Number, aspect:Number, near:Number, far:Number):void
Fills the 3d matrix with a 4x4 transformation that produces a perspective projection.
| 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 | ||
|
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
| det4x4 | property |
det4x4:Number [read-only] public function get det4x4():Number
| forward | property |
forward:Number3D [read-write]Returns a Number3D representing the forward vector of this matrix.
Implementation public function get forward():Number3D
public function set forward(value:Number3D):void
| position | property |
position:Number3D [read-only]Returns a 3d number representing the translation imposed by the 3dmatrix.
Implementation public function get position():Number3D
| right | property |
right:Number3D [read-write]Returns a Number3D representing the right vector of this matrix.
Implementation public function get right():Number3D
public function set right(value:Number3D):void
| swx | property |
public var swx:Number = 0
The value in the 4th row and first column of the Matrix object, --
| swy | property |
public var swy:Number = 0
The value in the 4th row and second column of the Matrix object, --
| swz | property |
public var swz:Number = 0
The value in the 4th row and third column of the Matrix object, --
| sxx | property |
public var sxx:Number = 1
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 = 0
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 = 0
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 = 0
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 = 1
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 = 0
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 = 0
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 = 0
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 = 1
The value in the third row and third column of the Matrix object, which affect the rotation and scaling of a 3d object.
| tw | property |
public var tw:Number = 1
The value in the 4th row and 4th column of the Matrix object, --
| tx | property |
public var tx:Number = 0
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 = 0
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 = 0
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.
| up | property |
up:Number3D [read-write]Returns a Number3D representing the up vector of this matrix.
Implementation public function get up():Number3D
public function set up(value:Number3D):void
| Matrix3D | () | constructor |
public function Matrix3D()
| array2matrix | () | method |
public function array2matrix(ar:Array, yUp:Boolean, scaling:Number):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 |
|
yUp:Boolean |
|
scaling:Number |
| clear | () | method |
public function clear():void
Clears the 3d matrix object and fills it with the identity matrix.
| 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 |
| compare | () | method |
| 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 3x3 calulation of the given 3d matrix.
Parametersm:Matrix3D — The 3d matrix object used for the inverse calulation.
|
| inverse4x4 | () | method |
public function inverse4x4(m:Matrix3D):void
Fills the 3d matrix object with the result from the inverse 4x4 calulation of the given 3d matrix.
Parametersm:Matrix3D — The 3d matrix object used for the inverse calulation.
|
| 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 |
| multiply4x3 | () | method |
public function multiply4x3(m1:Matrix3D, m2:Matrix3D):void
Fills the 3d matrix object with the result from a 4x3 multipication of two 3d matrix objects.
Parametersm1:Matrix3D — The first 3d matrix in the multipication.
|
|
m2:Matrix3D |
| multiply4x4 | () | method |
public function multiply4x4(m1:Matrix3D, m2:Matrix3D):void
Fills the 3d matrix object with the result from a 4x4 multipication of two 3d matrix objects.
Parametersm1:Matrix3D — The first 3d matrix in the multipication.
|
|
m2:Matrix3D |
| multiplyVector3x3 | () | method |
| normalize | () | method |
public function normalize(m1:Matrix3D):void
normalizes the axis vectors of the given 3d matrix.
Parametersm1:Matrix3D — The 3d matrix object used for the normalize calulation.
|
| orthographicProjectionMatrix | () | method |
public function orthographicProjectionMatrix(left:Number, right:Number, bottom:Number, top:Number, near:Number, far:Number):void
Fills the 3d matrix with a 4x4 transformation that produces an orthographic projection.
Parametersleft:Number |
|
right:Number |
|
bottom:Number |
|
top:Number |
|
near:Number |
|
far:Number |
| perspectiveProjectionMatrix | () | method |
public function perspectiveProjectionMatrix(fov:Number, aspect:Number, near:Number, far:Number):void
Fills the 3d matrix with a 4x4 transformation that produces a perspective projection.
Parametersfov:Number |
|
aspect:Number |
|
near:Number |
|
far:Number |
| 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(m1:Matrix3D, x:Number, y:Number, z:Number):void
Scales the 3d matrix by the given amount in each dimension
Parametersm1:Matrix3D — The 3d matrix to scale from.
|
|
x: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..
|