Click or drag to resize

Line Class

返回用户文档首页
表示三维空间中的一条直线。
Inheritance Hierarchy
SystemObject
  LoongCAD.Geometry.FriendlyLine

Namespace: LoongCAD.Geometry.Friendly
Assembly: LoongSDKCore (in LoongSDKCore.dll) Version: 2025.0.9.8 (2025.0.9.8)
Syntax
C#
public class Line

The Line type exposes the following members.

Constructors
 NameDescription
Public methodLine(Line) 根据已有的直线对象创建一个新的直线。
Public methodLine(Point, Point) 根据两个点创建一条线。
Public methodLine(Point, Vector) 根据两个点创建一条线。
Top
Methods
 NameDescription
Public methodDistance 计算给定点与直线上距离。
Public methodEquals 比较当前直线与另一个对象是否相等。
(Overrides ObjectEquals(Object))
Public methodGetHashCode 获取当前直线的哈希代码。
(Overrides ObjectGetHashCode)
Public methodIntersect(Line, Point, Point, Double) 计算当前直线与另一条直线的最短交线。
Public methodIntersect(Line, Double, Double, Double) 计算当前直线与另一条直线的最短交线。
Public methodProject 计算给定点在直线上的投影点。
Public methodSample 根据给定的参数t,在直线上采样点。
Public methodToString
(Overrides ObjectToString)
Top
Operators
Fields
 NameDescription
Public fieldDirection 方向向量
Public fieldStatic memberNULL 无效直线
Public fieldOrigin 起始点
Top
See Also