Click or drag to resize

Vec2Item Property

返回用户文档首页
获取或设置矩阵中的指定分量。

Namespace: LoongCAD.Geometry
Assembly: LoongSDKCore (in LoongSDKCore.dll) Version: 0.8.15.0 (0.8.15.0)
Syntax
C#
public double this[
	int idx
] { get; set; }

Parameters

idx  Int32
分量的索引。0代表X分量,1代表Y分量。

Return Value

Double
如果索引为0,则返回X分量;如果索引为1,则返回Y分量;否则返回0。
Remarks
使用索引0和1可以分别获取或设置X和Y分量。任何其他索引值将导致获取时返回0,设置时不执行任何操作。
See Also