Esempio n. 1
0
 public Segment IntersectWithSegment(Segment segment)
 {
     return(GeometryOperations.IntersectSegments(this, segment));
 }
Esempio n. 2
0
 public double DistanceToPoint(Point P)
 {
     return(GeometryOperations.DistanceFromPointToSegment(P, this));
 }
Esempio n. 3
0
 public Point IntersectWithLine(Line line)
 {
     return(GeometryOperations.IntersectSegmentLine(this, line));
 }
Esempio n. 4
0
 public Segment IntersectWithLine(Line line)
 {
     return(GeometryOperations.IntersectCircleLine(this, line));
 }
Esempio n. 5
0
 public bool ContainsPoint(Point P)
 {
     return(GeometryOperations.IsPointOnSegment(P, this));
 }
Esempio n. 6
0
 public double DistanceToPolygon(ConvexPolygon polygon)
 {
     return(GeometryOperations.DistanceFromPointToPolygon(this, polygon));
 }
Esempio n. 7
0
 public Point ProjectToLine(Line line)
 {
     return(GeometryOperations.ProjectPointOnLine(this, line));
 }
Esempio n. 8
0
 public double DistanceToLine(Line line)
 {
     return(GeometryOperations.DistanceFromPointToLine(this, line));
 }
Esempio n. 9
0
 public double DistanceToSegment(Segment segment)
 {
     return(GeometryOperations.DistanceFromPointToSegment(this, segment));
 }
Esempio n. 10
0
 public Segment NeareseEdgeFromPoint(Point P)
 {
     return(GeometryOperations.NearestEdgeFromPointToPolygon(P, this));
 }
Esempio n. 11
0
 public Point IntersectWithSegment(Segment segment)
 {
     return(GeometryOperations.IntersectSegmentLine(segment, this));
 }
Esempio n. 12
0
 public bool IsPointOnBorder(Point P)
 {
     return(GeometryOperations.IsPointOnPolygonBorder(P, this));
 }
Esempio n. 13
0
 public bool ContainsPoint(Point P)
 {
     return(GeometryOperations.IsPointInPolygon(P, this));
 }
Esempio n. 14
0
 public ConvexPolygon(params Point[] points)
 {
     this.points = GeometryOperations.BuildConvexHull(points.ToList());
 }
Esempio n. 15
0
 public ConvexPolygon(List <Point> points)
 {
     this.points = GeometryOperations.BuildConvexHull(points);
 }
Esempio n. 16
0
 public ConvexPolygon IntersectWithPolygon(ConvexPolygon other)
 {
     return(GeometryOperations.IntersectPolygons(this, other));
 }