本文整理汇总了C#中GeoLib.C2DPoint.Reflect方法的典型用法代码示例。如果您正苦于以下问题:C# C2DPoint.Reflect方法的具体用法?C# C2DPoint.Reflect怎么用?C# C2DPoint.Reflect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GeoLib.C2DPoint
的用法示例。
在下文中一共展示了C2DPoint.Reflect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Reflect
/// <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);
}
示例2: Reflect
/// <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);
}