返回用户文档首页
表示一个4x4的双精度浮点数矩阵。
Inheritance HierarchySystemObject
SystemValueType
LoongCAD.GeometryMat4
Namespace: LoongCAD.GeometryAssembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.7 (2025.0.9.7)
Syntax[SerializableAttribute]
public struct Mat4
The Mat4 type exposes the following members.
Constructors | Name | Description |
---|
 | Mat4(Double) |
初始化一个新的Mat4实例,其中对角线元素被设置为指定的值,其他元素为0。
|
 | Mat4(Double) |
使用一个包含16个元素的数组初始化一个新的Mat4实例。
|
 | Mat4(Mat4) |
从另一个Mat4实例拷贝构造。
|
 | Mat4(Vec4, Vec4, Vec4, Vec4) |
使用四个Vec4向量初始化一个新的Mat4实例。
|
 | Mat4(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double) |
使用16个单独的double值初始化一个新的Mat4实例。
|
Top
Properties
Methods | Name | Description |
---|
 | Equals |
比较当前Mat4实例与另一个对象是否相等。
(Overrides ValueTypeEquals(Object)) |
 | GetHashCode |
获取当前Mat4实例的哈希代码。
(Overrides ValueTypeGetHashCode) |
 | Identity |
将矩阵设置为单位矩阵。
|
 | Inverse |
计算并返回当前矩阵的逆矩阵。
|
 | Set(Double) |
通过一维数组设置矩阵的值。
|
 | Set(Vec4, Vec4, Vec4, Vec4) |
设置矩阵的各个向量分量。
|
 | Set(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double) |
通过指定的所有分量设置矩阵。
|
 | ToMat43 |
将Mat4实例转换为Mat43实例。
|
 | ToString |
返回表示当前Mat4实例的字符串。
(Overrides ValueTypeToString) |
Top
Operators
Fields
See Also