Click or drag to resize

Mat4 Structure

返回用户文档首页
表示一个4x4的双精度浮点数矩阵。
Inheritance Hierarchy
SystemObject
  SystemValueType
    LoongCAD.GeometryMat4

Namespace: LoongCAD.Geometry
Assembly: LoongSDKCore (in LoongSDKCore.dll) Version: 0.8.15.0 (0.8.15.0)
Syntax
C#
[SerializableAttribute]
public struct Mat4

The Mat4 type exposes the following members.

Constructors
 NameDescription
Public methodMat4(Double) 初始化一个新的Mat4实例,其中对角线元素被设置为指定的值,其他元素为0。
Public methodMat4(Double) 使用一个包含16个元素的数组初始化一个新的Mat4实例。
Public methodMat4(Mat4) 从另一个Mat4实例拷贝构造。
Public methodMat4(Vec4, Vec4, Vec4, Vec4) 使用四个Vec4向量初始化一个新的Mat4实例。
Public methodMat4(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double) 使用16个单独的double值初始化一个新的Mat4实例。
Top
Properties
 NameDescription
Public propertyItemInt32 获取或设置矩阵中指定列的值。
Public propertyItemInt32, Int32 获取或设置矩阵在指定行和列的值。
Top
Methods
 NameDescription
Public methodEquals 比较当前Mat4实例与另一个对象是否相等。
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode 获取当前Mat4实例的哈希代码。
(Overrides ValueTypeGetHashCode)
Public methodIdentity 将矩阵设置为单位矩阵。
Public methodInverse 计算并返回当前矩阵的逆矩阵。
Public methodSet(Double) 通过一维数组设置矩阵的值。
Public methodSet(Vec4, Vec4, Vec4, Vec4) 设置矩阵的各个向量分量。
Public methodSet(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double) 通过指定的所有分量设置矩阵。
Public methodToMat43 将Mat4实例转换为Mat43实例。
Public methodToString 返回表示当前Mat4实例的字符串。
(Overrides ValueTypeToString)
Top
Operators
Fields
 NameDescription
Public fieldStatic memberIDENTITY 表示4x4矩阵的单位矩阵。
Public fieldPos 
Public fieldX 
Public fieldY 
Public fieldZ 
Top
See Also