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