Mat4Item(Int32, Int32) Property |
返回用户文档首页
获取或设置矩阵在指定行和列的值。
Namespace: LoongCAD.GeometryAssembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.7 (2025.0.9.7)
Syntaxpublic double this[
int row,
int col
] { get; set; }
Parameters
- row Int32
- 矩阵的行索引。
- col Int32
- 矩阵的列索引。0代表X,1代表Y,2代表Z,3代表Pos。
Return Value
Double
当使用get访问时,返回指定行和列的值。如果列索引超出范围,则返回0.0。
当使用set访问时,设置指定行和列的值。
Remarks
这个索引器允许通过行和列的索引直接访问矩阵的元素。列索引0, 1, 2, 和 3分别对应X, Y, Z, 和 Pos。
See Also