Object
LineF
LineF | The default constructor for the LineF class. |
LineF | A constructor which takes x1, y1, x2 and y2 coordinates as a parameters. |
LineF | A constructor which takes two PointF points as parameters to define the line. |
Clone | Returns a clone of the LineF. |
x1 | Sets or gets the x1 coordinate of the line. |
x2 | Sets or gets the x2 coordinate of the line. |
y1 | Sets or gets the y1 coordinate of the line. |
y2 | Sets or gets the y2 coordinate of the line. |
Contains | Returns true if the given point is within the line. |
Contains | Returns true if the given coordinates is within the line. |
Draw | Draws the line into a Graphics context with the current color of the Graphics context. |
Draw (web only) | Draws the line into a WebGraphics context with the current color of the WebGraphics context. |
ExtendLine | Returns a copy of the line which has been extended or shrunk in both directions by given amount. |
ExtendLineByRatio | Returns a copy of the line which has been extended or shrunk in both directions by given percentage. |
GetCenter | Returns center of the line as a Point. |
Intersects | Returns true if the line intersects with the other given line. |
Intersects | Returns true if the line intersects with the other given line and also gives information on where the two lines crossed. |
Length | Returns the length of the line. |
MakeParallel | Creates a new line that is parallel to the current line, offset at straight angle relative to the current line by a given distance. |
PointDistanceFromInfiniteLine | Calculates distance of a point from a line that is infinite long. |
PointDistanceFromLine | Calculates distance of a point from a fixed length line. |
Rotate | Rotates the line in a coordinate system around a defined center point. |