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