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