Exemple #1
0
 public Point2 <T>[] ToArray()
 {
     Point2 <T>[] tmp = new Point2 <T> [this.Points.Length];
     Array.Copy(this.Points, tmp, tmp.Length);
     return(tmp);
 }
Exemple #2
0
 //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));
 }
Exemple #3
0
 //orientation is a point on the line
 public Line2 <T> ConstructLine(Point2 <T> anchor, Point2 <T> orientation)
 {
     return(new Line2 <T>(anchor, orientation));
 }
Exemple #4
0
 public LineSegment2 <T> ConstructSegment(Point2 <T> start, Point2 <T> end)
 {
     return(new LineSegment2 <T>(start, end));
 }