Click or drag to resize

Vec2iItem Property

返回用户文档首页
获取或设置向量的坐标。

Namespace: LoongCAD.Geometry
Assembly: LoongSDKCore (in LoongSDKCore.dll) Version: 0.8.15.0 (0.8.15.0)
Syntax
C#
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
ExceptionCondition
ArgumentOutOfRangeException如果idx不是0或1,将抛出异常。
See Also