예제 #1
0
 public Segment2D(Vector2[] points) : base(points[0], points[1])
 {
     MiddlePoint = Hedra.MidPoint(points[0], points[1]);
 }
예제 #2
0
 public override void Translate(Vector2 direction)
 {
     base.Translate(direction);
     MiddlePoint = Hedra.MidPoint(PointA, PointB);
 }
예제 #3
0
 public Segment2D(Vector2 pointA, Vector2 pointB) : base(pointA, pointB)
 {
     MiddlePoint = Hedra.MidPoint(pointA, pointB);
 }