Line |
public class Line2D : Shape2D
The Line2D type exposes the following members.
Name | Description | |
---|---|---|
![]() | Line2D | Initializes a new instance of the Line2D class |
![]() | Line2D(Vec2, Vec2) | Initializes a new instance of the Line2D class |
Name | Description | |
---|---|---|
![]() | BoundBox | (Inherited from Shape2D) |
![]() | Color | (Inherited from Shape2D) |
![]() | Length | |
![]() | LineType | (Inherited from Shape2D) |
![]() | LineWidth | (Inherited from Shape2D) |
![]() | ShapeType | (Inherited from Shape2D) |
![]() | V0 | |
![]() | V1 |
Name | Description | |
---|---|---|
![]() | Clear | (Overrides Shape2DClear) |
![]() | Clone | (Overrides Shape2DClone) |
![]() | ContainedByBox | (Overrides Shape2DContainedByBox(Box2D)) |
![]() | DistanceTo |
计算目标点到线段的最小距离
(Overrides Shape2DDistanceTo(Vec2)) |
![]() | FindNearestPoint(Vec2) | |
![]() | FindNearestPoint(Double, Double) | |
![]() | IntersectWithBox | (Overrides Shape2DIntersectWithBox(Box2D)) |
![]() | IsEmpty | (Overrides Shape2DIsEmpty) |
![]() | IsParallelWith | |
![]() | IsVerticalWith | |
![]() | Projection(Vec2) | |
![]() | Projection(Double, Double) | |
![]() | ProjectionFactor(Vec2) | |
![]() | ProjectionFactor(Double, Double) | |
![]() | Sample | |
![]() | Transform | (Overrides Shape2DTransform(Mat43)) |
![]() | Translate(Vec2) | (Overrides Shape2DTranslate(Vec2)) |
![]() | Translate(Double, Double) | (Overrides Shape2DTranslate(Double, Double)) |
![]() | VerticalDistanceTo | 计算目标点到线段的垂直距离 |