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