Example #1
0
 /// <summary>
 /// 将三角形的三个点进行平移
 /// </summary>
 /// <param name="translation"></param>
 /// <param name="distance"></param>
 /// <returns></returns>
 public Triangle Translate(Vector3d translation, double distance)
 {
     return(new Triangle(V1.Move(translation, distance), V2.Move(translation, distance), V3.Move(translation, distance)));
 }
Example #2
0
 /// <summary>
 /// 将三角形的三个点依次平移
 /// </summary>
 /// <param name="translation"></param>
 /// <returns></returns>
 public Triangle Translate(Vector3d translation)
 {
     return(new Triangle(V1.Move(translation), V2.Move(translation), V3.Move(translation)));
 }