Click or drag to resize

Point Class

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

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

The Point type exposes the following members.

Constructors
 NameDescription
Public methodPointInitializes a new instance of the Point class
Public methodPoint(Point) 通过复制另一个 Point 实例来初始化一个新的 Point 实例。
Public methodPoint(Vec3) 通过复制另一个 Vec3 实例来初始化一个新的 Point 实例。
Public methodPoint(Vector) 通过复制另一个 Vector 实例来初始化一个新的 Point 实例。
Public methodPoint(Double, Double, Double) 初始化 Point 结构的新实例。
Top
Properties
 NameDescription
Public propertyStatic memberAXIS_X 表示X轴的单位顶点(1.0, 0.0, 0.0)。
Public propertyStatic memberAXIS_Y 表示Y轴的单位顶点(0.0, 1.0, 0.0)。
Public propertyStatic memberAXIS_Z 表示Z轴的单位顶点(0.0, 0.0, 1.0)。
Public propertyItem 获取或设置顶点的指定分量。
Public propertyStatic memberMAX 表示具有最大双精度浮点数值的三维顶点(Double.MaxValue, Double.MaxValue, Double.MaxValue)。
Public propertyStatic memberMIN 表示具有最小双精度浮点数值的三维顶点(Double.MinValue, Double.MinValue, Double.MinValue)。
Public propertyStatic memberZERO 
Top
Methods
 NameDescription
Public methodCompareTo 
Public methodDist Distance的别名
Public methodDistance 计算此Point对象与另一个Point对象之间的距离。
Public methodDistanceSquare 计算此Point对象与另一个Point对象之间距离的平方。
Public methodDistSqr DistanceSquare的别名
Public methodEquals
(Overrides ObjectEquals(Object))
Public methodGetHashCode
(Overrides ObjectGetHashCode)
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 ObjectToString)
Public methodTranslate 对当前顶点做平移
Public methodZero 数据清零
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Double, Point) 支持+运算符
Public operatorStatic memberAddition(Point, Point) 支持+运算符
Public operatorStatic memberAddition(Point, Double) 支持+运算符
Public operatorStatic memberDivision(Double, Point) 支持/运算符
Public operatorStatic memberDivision(Point, Point) 支持/运算符
Public operatorStatic memberDivision(Point, Double) 支持/运算符
Public operatorStatic memberEquality(Point, Point) 
Public operatorStatic member(Vector to Point) 
Public operatorStatic memberInequality(Point, Point) 
Public operatorStatic memberMultiply(Double, Point) 支持*运算符
Public operatorStatic memberMultiply(Point, Point) 支持*运算符
Public operatorStatic memberMultiply(Point, Double) 支持*运算符
Public operatorStatic memberSubtraction(Double, Point) 支持-运算符
Public operatorStatic memberSubtraction(Point, Point) 支持-运算符
Public operatorStatic memberSubtraction(Point, Double) 支持-运算符
Public operatorStatic memberUnaryNegation(Point) 支持-运算符
Top
Fields
 NameDescription
Public fieldX X分量
Public fieldY Y分量
Public fieldZ Z分量
Top
See Also