/// <summary> /// Point reflection. /// </summary> /// <param name="Line">The line through which to reflect this.</param> public override void Reflect(C2DLine Line) { var pointTo = new C2DPoint(GetPointTo()); point.Reflect(Line); pointTo.Reflect(Line); SetPointTo(pointTo); }
/// <summary> /// Point reflection. /// </summary> /// <param name="Point">The point through which to reflect this.</param> public override void Reflect(C2DPoint Point) { C2DPoint pointTo = new C2DPoint(GetPointTo()); point.Reflect(Point); pointTo.Reflect(Point); SetPointTo(pointTo); }
/// <summary> /// Reflect throught the line by reflecting the centre of the /// rect and keeping the validity. /// </summary> /// <param name="Line">Reflection Line.</param> public override void Reflect(C2DLine Line) { C2DPoint ptCen = new C2DPoint(this.GetCentre()); C2DPoint ptNewCen = new C2DPoint(ptCen); ptNewCen.Reflect(Line); C2DVector vec = new C2DVector(ptCen, ptNewCen); Move(vec); }
/// <summary> /// Point reflection. /// </summary> /// <param name="Line">The line through which to reflect this.</param> public override void Reflect(C2DLine Line) { C2DPoint pointTo = new C2DPoint(GetPointTo()); point.Reflect(Line); pointTo.Reflect(Line); SetPointTo(pointTo); }
/// <summary> /// Reflect throught the line by reflecting the centre of the /// rect and keeping the validity. /// </summary> /// <param name="Line">Reflection Line.</param> public override void Reflect(C2DLine Line) { C2DPoint ptCen = new C2DPoint(this.GetCentre()); C2DPoint ptNewCen = new C2DPoint(ptCen); ptNewCen.Reflect(Line); C2DVector vec = new C2DVector(ptCen, ptNewCen); Move(vec); }