Line Class |
public class Line
The Line type exposes the following members.
| Name | Description | |
|---|---|---|
| Line | Initializes a new instance of the Line class | |
| Line(Line) | 根据已有的直线对象创建一个新的直线。 | |
| Line(LineSegment) | 根据已有的线段对象创建一个新的直线。 | |
| Line(Point, Point) | 根据两个点创建一条线。 | |
| Line(Point, Vector) | 根据两个点创建一条线。 |
| Name | Description | |
|---|---|---|
| Distance | 计算给定点与直线上距离。 | |
| Equals | (Overrides ObjectEquals(Object)) | |
| GetHashCode | (Overrides ObjectGetHashCode) | |
| Intersect(Line, Point, Point, Double) | 计算当前直线与另一条直线的最短交线。 | |
| Intersect(Line, Double, Double, Double) | 计算当前直线与另一条直线的最短交线。 | |
| Project | 计算给定点在直线上的投影点。 | |
| Sample | 根据给定的参数t,在直线上采样点。 | |
| ToString | (Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| Equality(Line, Line) | ||
| Inequality(Line, Line) |
| Name | Description | |
|---|---|---|
| m_direction | 方向向量 | |
| m_origin | 起始点 |