Package | laya.d3.math |
Class | public class Matrix3x3 |
Inheritance | Matrix3x3 Object |
Implements | laya.d3.core.IClone |
Matrix3x3
类用于创建3x3矩阵。
Property | Defined By | ||
---|---|---|---|
elements : Float32Array 矩阵元素数组 | Matrix3x3 |
Method | Defined By | ||
---|---|---|---|
创建一个 Matrix3x3 实例。
| Matrix3x3 | ||
clone():*
克隆。
| Matrix3x3 | ||
cloneTo(destObject:*):void
克隆。
| Matrix3x3 | ||
[static]
从4x4矩阵转换为一个3x3的矩阵(原则为upper-left,忽略第四行四列)
| Matrix3x3 | ||
createFromRotation(rad:Number, out:Matrix3x3):void [static]
根据指定旋转生成3x3矩阵
| Matrix3x3 | ||
[static]
根据制定缩放生成3x3矩阵
| Matrix3x3 | ||
[static]
根据指定平移生成3x3矩阵
| Matrix3x3 | ||
determinant():Number
计算3x3矩阵的行列式
| Matrix3x3 | ||
identity():void 设置已有的矩阵为单位矩阵 | Matrix3x3 | ||
计算3x3矩阵的逆矩阵
| Matrix3x3 | ||
[static]
计算观察3x3矩阵
| Matrix3x3 | ||
[static]
两个3x3矩阵的相乘
| Matrix3x3 | ||
根据指定角度旋转3x3矩阵
| Matrix3x3 | ||
据制定缩放3x3矩阵
| Matrix3x3 | ||
通过一个二维向量转换3x3矩阵
| Matrix3x3 | ||
计算3x3矩阵的转置矩阵
| Matrix3x3 |
elements | property |
public var elements:Float32Array
矩阵元素数组
Matrix3x3 | () | Constructor |
public function Matrix3x3()
创建一个 Matrix3x3
实例。
clone | () | method |
public function clone():*
克隆。
Returns* — 克隆副本。
|
cloneTo | () | method |
public function cloneTo(destObject:*):void
克隆。
Parameters
destObject:* — 克隆源。
|
createFromMatrix4x4 | () | method |
public static function createFromMatrix4x4(sou:Matrix4x4, out:Matrix3x3):void
从4x4矩阵转换为一个3x3的矩阵(原则为upper-left,忽略第四行四列)
Parameters
sou:Matrix4x4 — 4x4源矩阵
| |
out:Matrix3x3 — 3x3输出矩阵
|
createFromRotation | () | method |
public static function createFromRotation(rad:Number, out:Matrix3x3):void
根据指定旋转生成3x3矩阵
Parameters
rad:Number — 旋转值
| |
out:Matrix3x3 — 输出矩阵
|
createFromScaling | () | method |
public static function createFromScaling(scale:Vector2, out:Matrix3x3):void
根据制定缩放生成3x3矩阵
Parameters
scale:Vector2 — 缩放值
| |
out:Matrix3x3 — 输出矩阵
|
createFromTranslation | () | method |
public static function createFromTranslation(trans:Vector2, out:Matrix3x3):void
根据指定平移生成3x3矩阵
Parameters
trans:Vector2 — 平移
| |
out:Matrix3x3 — 输出矩阵
|
determinant | () | method |
public function determinant():Number
计算3x3矩阵的行列式
ReturnsNumber — 矩阵的行列式
|
identity | () | method |
public function identity():void
设置已有的矩阵为单位矩阵
invert | () | method |
lookAt | () | method |
public static function lookAt(eye:Vector3, target:Vector3, up:Vector3, out:Matrix3x3):void
计算观察3x3矩阵
Parameters
eye:Vector3 — 观察者位置
| |
target:Vector3 — 目标位置
| |
up:Vector3 — 上向量
| |
out:Matrix3x3 — 输出3x3矩阵
|
multiply | () | method |
public static function multiply(left:Matrix3x3, right:Matrix3x3, out:Matrix3x3):void
两个3x3矩阵的相乘
Parameters
left:Matrix3x3 — 左矩阵
| |
right:Matrix3x3 — 右矩阵
| |
out:Matrix3x3 — 输出矩阵
|
rotate | () | method |
public function rotate(rad:Number, out:Matrix3x3):void
根据指定角度旋转3x3矩阵
Parameters
rad:Number — 旋转角度
| |
out:Matrix3x3 — 输出矩阵
|
scale | () | method |
public function scale(scale:Vector2, out:Matrix3x3):void
据制定缩放3x3矩阵
Parameters
scale:Vector2 — 缩放值
| |
out:Matrix3x3 — 输出矩阵
|
translate | () | method |
public function translate(trans:Vector2, out:Matrix3x3):void
通过一个二维向量转换3x3矩阵
Parameters
trans:Vector2 — 转换向量
| |
out:Matrix3x3 — 输出矩阵
|
transpose | () | method |
DEFAULT | Constant |
public static const DEFAULT:Matrix3x3
默认矩阵,禁止修改