Method | Description | |
---|---|---|
DistanceToPoint ( System.Point point ) : float |
Calculate Euclidean distance between a point and a finite line segment.
|
|
Equals ( object obj ) : bool |
Check if this instance of LineSegment equals to the specified one.
|
|
GetHashCode ( ) : int |
Get hash code for this instance.
|
|
GetIntersectionWith ( Line other ) : Point? |
Finds, provided it exists, the intersection point with the specified Line. If the line and the segment do not intersect, the method returns |
|
GetIntersectionWith ( |
Finds, provided it exists, the intersection point with the specified LineSegment. If the two segments do not intersect, the method returns |
|
LineSegment ( System.Point start, System.Point end ) : System |
Initializes a new instance of the LineSegment class.
|
|
ToString ( ) : string |
Get string representation of the class.
|
|
operator ( ) : bool |
Equality operator - checks if two line segments have equal parameters.
|
Method | Description | |
---|---|---|
LocateProjection ( System.Point point ) : ProjectionLocation |
public DistanceToPoint ( System.Point point ) : float | ||
point | System.Point | The point to calculate the distance to. |
return | float |
public Equals ( object obj ) : bool | ||
obj | object | Another line segment to check equalty to. |
return | bool |
public GetIntersectionWith ( Line other ) : Point? | ||
other | Line | |
return | Point? |
public GetIntersectionWith ( |
||
other | ||
return | Point? |
public LineSegment ( System.Point start, System.Point end ) : System | ||
start | System.Point | Segment's start point. |
end | System.Point | Segment's end point. |
return | System |