Ejemplo n.º 1
0
 public Point2 <T>[] ToArray()
 {
     Point2 <T>[] tmp = new Point2 <T> [this.Points.Length];
     Array.Copy(this.Points, tmp, tmp.Length);
     return(tmp);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 4
0
 public LineSegment2 <T> ConstructSegment(Point2 <T> start, Point2 <T> end)
 {
     return(new LineSegment2 <T>(start, end));
 }