Exemplo n.º 1
0
 /// <summary>
 /// 按直线的镜像矩阵
 /// </summary>
 /// <param name="start"></param>
 /// <param name="end"></param>
 /// <returns></returns>
 public static Matrix2D Mirror(Point2D start, Point2D end)
 {
     return(Matrix2D.Mirror(start, end - start));
 }
Exemplo n.º 2
0
 public Vector2D Mirror(Vector2D vec)
 {
     return(TransformBy(Matrix2D.Mirror(vec)));
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="line"></param>
 /// <returns></returns>
 public static Matrix2D Mirror(LineSegment2D line)
 {
     return(Matrix2D.Mirror(line.StartPoint, line.EndPoint));
 }