+ | ignoreParent : bool |
忽略父矩阵。
|
+ | ignoreRotation : bool |
忽略本级旋转。
|
+ | ignoreScaling : bool |
忽略本级缩放。
|
+ | ignoreTranslation : bool |
忽略本级位移。
|
+ | ignoreWorld : bool |
忽略世界矩阵。
|
+ | name : string |
矩阵名。
|
+ | parent : _Matrix3D |
父矩阵,默认为nil。 |
+ | root : _Matrix3D |
根矩阵,默认为nil。 |
矩阵左乘向量。若有out参数则不构造新_Vector3。 |
矩阵左乘向量。若有out参数则不构造新_Vector3。
|
+ | function child() : _Matrix3D |
创建一个新的矩阵,并把原矩阵设置为父。例如 c = p:child() 相当于 c = _Matrix3D.new() c.parent = p。
|
+ | function clone() : _Matrix3D |
复制自己及父的值并构造一个新_Matrix3D返回。
|
+ | function getRotation([out : _Vector4]) : {x, y, z, r} (_Vector4) |
返回当前矩阵的旋转。此旋转是当前矩阵按照缩放,旋转,位移的顺序组合,分解得到的其中旋转分量。若有out参数则不构造新_Vector4。
|
+ | function getRotationX() : number |
获取矩阵绕x轴旋转的弧度值。
|
+ | function getRotationY() : number |
获取矩阵绕y轴旋转的弧度值。
|
+ | function getRotationZ() : number |
获取矩阵绕z轴旋转的弧度值。
|
返回当前矩阵的缩放。此位移是当前矩阵按照缩放,旋转,位移的顺序组合,分解得到的其中缩放分量。若有out参数则不构造新_Vector3。 |
返回当前矩阵的位移。此位移是当前矩阵按照缩放,旋转,位移的顺序组合,分解得到的其中位移分量。若有out参数则不构造新_Vector3。 |
+ | function identity() |
矩阵归一化。
|
+ | function inverse() |
矩阵求逆。
|
使用传入的4个向量组成一个指定目标坐标系的旋转矩阵, 用它左乘当前矩阵。
|
使用传入的4个向量组成一个指定目标坐标系的旋转矩阵, 用它右乘当前矩阵。
|
+ |
function mulFaceToLeft(x1 : number, y1 : number, z1 : number, x2 : number, y2 : number, z2 : number[, a : uint]) function mulFaceToLeft(v1 : _Vector3, v2 : _Vector3[, a : uint]) |
矩阵左乘旋转。该旋转定义为将向量v1(x1, y1, z1)旋转到向量v2(x2, y2, z2)。 |
+ |
function mulFaceToRight(x1 : number, y1 : number, z1 : number, x2 : number, y2 : number, z2 : number[, a : uint]) function mulFaceToRight(v1 : _Vector3, v2 : _Vector3[, a : uint]) |
矩阵右乘旋转。该旋转定义为将向量v1(x1, y1, z1)旋转到向量v2(x2, y2, z2)。 |
+ | function mulLeft(mat : _Matrix3D) |
矩阵左乘mat矩阵。 |
+ | function mulMirrorX() |
左乘一个镜像矩阵,达到绕X轴翻转的效果。
|
+ | function mulMirrorY() |
左乘一个镜像矩阵,达到绕Y轴翻转的效果。
|
+ | function mulMirrorZ() |
左乘一个镜像矩阵,达到绕Z轴翻转的效果。
|
+ | function mulRight(mat : _Matrix3D ) |
矩阵右乘mat矩阵。 |
+ |
function mulRotationLeft(x : number, y : number, z : number, r : number[, a : uint]) function mulRotationLeft(v : _Vector3, r : number[, a : uint]) |
矩阵左乘旋转。 |
+ |
function mulRotationRight(x : number, y : number, z : number, r : number[, a : uint]) function mulRotationRight(v : _Vector3, r : number[, a : uint]) |
矩阵右乘旋转。 |
+ | function mulRotationXLeft(r : number[, a : uint]) |
矩阵左乘绕x轴的旋转。
|
+ | function mulRotationXRight(r : number[, a : uint]) |
矩阵右乘绕x轴的旋转。
|
+ | function mulRotationYLeft(r : number[, a : uint]) |
矩阵左乘绕y轴的旋转。
|
+ | function mulRotationYRight(r : number[, a : uint]) |
矩阵右乘绕y轴的旋转。
|
+ | function mulRotationZLeft(r : number[, a : uint]) |
矩阵左乘绕z轴的旋转。
|
+ | function mulRotationZRight(r : number[, a : uint]) |
矩阵右乘绕z轴的旋转。
|
+ |
function mulScalingLeft( x : number, y : number, z : number[, a : uint] ) function mulScalingLeft( v : _Vector3[, a : uint] ) |
矩阵左乘缩放。 |
+ |
function mulScalingRight(x : number, y : number, z : number[, a : uint]) function mulScalingRight(v : _Vector3[, a : uint] ) |
矩阵右乘缩放。 |
+ |
function mulTranslationLeft(x : number, y : number, z : number[, a : uint]) function mulTranslationLeft(v : _Vector3[, a : uint]) |
矩阵左乘位移。 |
+ |
function mulTranslationRight(x : number, y : number, z : number[, a : uint]) function mulTranslationRight(v : _Vector3[, a : uint]) |
矩阵右乘位移。 |
+ | function set(mat : _Matrix3D) |
赋值。 |
使用传入的4个向量组成一个指定目标坐标系的旋转矩阵。
|
设置矩阵的旋转。该旋转定义为将向量v1(x1, y1, z1)旋转到向量v2(x2, y2, z2)。 |
+ | function setFaceTo(x1 : number, y1 : number, z1 : number, x2 : number, y2 : number, z2 : number) |
设置矩阵的旋转。该旋转定义为将向量v1(x1, y1, z1)旋转到向量v2(x2, y2, z2)。
|
+ | function setRotation(v : _Vector3, r : number[, a : uint]) |
设置矩阵旋转。 |
+ | function setRotation(x : number, y : number, z : number, r : number[, a : uint]) |
设置矩阵旋转。
|
+ | function setRotationX(r : number[, a : uint]) |
设置矩阵为绕x轴旋转。
|
+ | function setRotationY(r : number[, a : uint]) |
设置矩阵为绕y轴旋转。
|
+ | function setRotationZ(r : number[, a : uint]) |
设置矩阵为绕z轴旋转。
|
+ |
function setScaling(x : number, y : number, z : number[, a : uint] ) function setScaling(v : _Vector3[, a : uint]) |
设置矩阵的缩放。 |
+ | function setTranslation(v : _Vector3[, a : uint]) |
设置矩阵的位移。 |
+ | function setTranslation(x : number, y : number, z : number[, a : uint]) |
设置矩阵的位移。
|
+ | function transpose() |
矩阵转置。
|