示例#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);
 }