M3D / M3D / M3DMath / Matrix3x4
Class: Matrix3x4
Memberof
M3D.M3DMath
Description
3*4矩阵
Table of contents
Constructors
Properties
Methods
- Add
- AddED
- Clone
- Data
- Decompose
- Equals
- GetLookAt
- GetLookAt_1
- Inverse
- InverseED
- LeftMultiRotation
- LeftMultiScale
- LeftMultiTranslate
- MultiRotatiton
- MultiScale
- MultiTranslate
- Multiply
- MultiplyED
- Release
- Rotation
- Rotation2
- RotationMatrix
- RotationMatrix2
- Scale
- SetRotation
- SetScale
- SetTranslation
- Sub
- SubED
- ToMatrix3
- ToMatrix4
- Tostring
- Translation
- Value
- copyFrom
- fromString
- IDENTITY
- ZERO
Constructors
constructor
• new Matrix3x4(): Matrix3x4
Returns
Description
构造函数
• new Matrix3x4(mat
): Matrix3x4
Parameters
Name | Type |
---|---|
mat | Matrix3x4 |
Returns
Description
构造函数
• new Matrix3x4(mat
): Matrix3x4
Parameters
Name | Type |
---|---|
mat | Matrix3 |
Returns
Description
构造函数
• new Matrix3x4(mat
): Matrix3x4
Parameters
Name | Type |
---|---|
mat | Matrix4 |
Returns
Description
构造函数
• new Matrix3x4(data
): Matrix3x4
Parameters
Name | Type |
---|---|
data | Float32Array |
Returns
Description
构造函数
• new Matrix3x4(translation
, rotation
, scale
): Matrix3x4
Parameters
Name | Type |
---|---|
translation | Vector3 |
rotation | Quaternion |
scale | number |
Returns
Description
构造函数
• new Matrix3x4(translation
, rotation
, scale
): Matrix3x4
Parameters
Name | Type |
---|---|
translation | Vector3 |
rotation | Quaternion |
scale | Vector3 |
Returns
Description
构造函数
• new Matrix3x4(v00
, v01
, v02
, v03
, v10
, v11
, v12
, v13
, v20
, v21
, v22
, v23
): Matrix3x4
Parameters
Name | Type |
---|---|
v00 | number |
v01 | number |
v02 | number |
v03 | number |
v10 | number |
v11 | number |
v12 | number |
v13 | number |
v20 | number |
v21 | number |
v22 | number |
v23 | number |
Returns
Description
构造函数
Properties
data
• data: Float32Array
_IDENTITY
▪ Static
_IDENTITY: Matrix3x4
_ZERO
▪ Static
_ZERO: Matrix3x4
matrix3x4Count
▪ Static
matrix3x4Count: number
Methods
Add
▸ Add(rhs
): Matrix3x4
Parameters
Name | Type |
---|---|
rhs | Matrix3x4 |
Returns
Description
矩阵加法(生成新矩阵,不改变自身值)
AddED
▸ AddED(rhs
): Matrix3x4
Parameters
Name | Type |
---|---|
rhs | Matrix3x4 |
Returns
Description
矩阵加法(不生成新矩阵,改变自身值)
Clone
▸ Clone(): Matrix3x4
Returns
Description
矩阵克隆
Data
▸ Data(): Float32Array
Returns
Float32Array
Description
获取矩阵数据
Decompose
▸ Decompose(translation
, rotation
, scale
): void
Parameters
Name | Type |
---|---|
translation | Vector3 |
rotation | Quaternion |
scale | Vector3 |
Returns
void
Description
矩阵数据分解
Equals
▸ Equals(mat
): boolean
Parameters
Name | Type |
---|---|
mat | Matrix3x4 |
Returns
boolean
Description
判断矩阵是否相等
GetLookAt
▸ GetLookAt(eye
, center
, up
, lookDistance?
): Vector3
[]
Parameters
Name | Type |
---|---|
eye | Vector3 |
center | Vector3 |
up | Vector3 |
lookDistance? | number |
Returns
Vector3
[]
Description
获取看向位置等数据
GetLookAt_1
▸ GetLookAt_1(eye
, center
, up
, lookDistance?
): Vector3
[]
Parameters
Name | Type |
---|---|
eye | Vector3 |
center | Vector3 |
up | Vector3 |
lookDistance? | number |
Returns
Vector3
[]
Description
获取看向位置等数据
Inverse
▸ Inverse(): Matrix3x4
Returns
Description
求矩阵的逆(生成新矩阵,不改变自身值)
InverseED
▸ InverseED(): Matrix3x4