返回用户文档首页
获取或设置向量的坐标。
Namespace: LoongCAD.GeometryAssembly: LoongSDKCore (in LoongSDKCore.dll) Version: 0.8.15.0 (0.8.15.0)
Syntax public int this[
int idx
] { get; set; }
Parameters
- idx Int32
- 坐标索引。0代表X坐标,1代表Y坐标。
Property Value
Int32
当获取时,如果
idx为0,返回X坐标的值;如果为1,返回Y坐标的值;如果为其他值,返回0。
当设置时,如果
idx为0,设置X坐标的值;如果为1,设置Y坐标的值。
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | 如果idx不是0或1,将抛出异常。 |
See Also