Click or drag to resize

Point Structure

返回用户文档首页
表示一个三维顶点,具有三个双精度浮点数分量。
Inheritance Hierarchy
SystemObject
  SystemValueType
    LoongCAD.Geometry.FriendlyPoint

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

The Point type exposes the following members.

Constructors
 NameDescription
Public methodPoint(Point) 通过复制另一个 Point 实例来初始化一个新的 Point 实例。
Public methodPoint(Vec3) 通过复制另一个 Vec3 实例来初始化一个新的 Point 实例。
Public methodPoint(Double, Double, Double) 初始化 Point 结构的新实例。
Top
Properties
 NameDescription
Public propertyItem 获取或设置顶点的指定分量。
Top
Methods
 NameDescription
Public methodDist 计算此Point对象与另一个Point对象之间的距离。
Public methodDistSqr 计算此Point对象与另一个Point对象之间距离的平方。
Public methodEquals 判断当前顶点和指定对象是否相等。
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode 获取当前顶点的哈希码。
(Overrides ValueTypeGetHashCode)
Public methodIsValid 检查Point对象的坐标值是否在有效范围内。
Public methodLerp 对两个Point顶点进行线性插值。
Public methodMax 获取当前顶点和另一个顶点各分量的最大值。
Public methodMin 获取当前顶点和另一个顶点各分量的最小值。
Public methodSet(Point) 设置Vec2i的坐标,基于另一个Point实例。
Public methodSet(Double, Double, Double) 设置Vec2i的X, Y和Z坐标。
Public methodToString
(Overrides ValueTypeToString)
Public methodTranslate 对当前顶点做平移
Public methodZero 数据清零
Top
Operators
Fields
 NameDescription
Public fieldStatic memberAXIS_X 表示X轴的单位顶点(1.0, 0.0, 0.0)。
Public fieldStatic memberAXIS_Y 表示Y轴的单位顶点(0.0, 1.0, 0.0)。
Public fieldStatic memberAXIS_Z 表示Z轴的单位顶点(0.0, 0.0, 1.0)。
Public fieldStatic memberMAX 表示具有最大双精度浮点数值的三维顶点(Double.MaxValue, Double.MaxValue, Double.MaxValue)。
Public fieldStatic memberMIN 表示具有最小双精度浮点数值的三维顶点(Double.MinValue, Double.MinValue, Double.MinValue)。
Public fieldStatic memberNULL 表示无效顶点(Double.MaxValue, Double.MaxValue, Double.MaxValue)。
Public fieldX 
Public fieldY 
Public fieldZ 
Public fieldStatic memberZERO 
Top
See Also