Class Line
Represents a line.
public class Line : IShape
- Inheritance
-
Line
- Implements
- Inherited Members
Constructors
Line()
Constructs a new zero-length line starting at zero.
public Line()
Line(float, float, float, float)
Constructs a new line based on the given coordinates.
public Line(float x1, float y1, float x2, float y2)
Parameters
x1
floatx-coordinate of start point of this Line
y1
floaty-coordinate of start point of this Line
x2
floatx-coordinate of end point of this Line
y2
floaty-coordinate of end point of this Line
Line(Point, Point)
Constructs a new line based on the given coordinates.
public Line(Point p1, Point p2)
Parameters
Methods
GetBasePoints()
public virtual IList<Point> GetBasePoints()