public Point2 <T>[] ToArray() { Point2 <T>[] tmp = new Point2 <T> [this.Points.Length]; Array.Copy(this.Points, tmp, tmp.Length); return(tmp); }
//orientation is a point on the ray -- provides orientation/direction public Ray2 <T> ConstructRay(Point2 <T> start, Point2 <T> orientation) { return(new Ray2 <T>(start, orientation)); }
//orientation is a point on the line public Line2 <T> ConstructLine(Point2 <T> anchor, Point2 <T> orientation) { return(new Line2 <T>(anchor, orientation)); }
public LineSegment2 <T> ConstructSegment(Point2 <T> start, Point2 <T> end) { return(new LineSegment2 <T>(start, end)); }