예제 #1
0
 public static Frame3f Rotate(Frame3f f, Vector3d origin, Quaternionf rotation)
 {
     f.Origin -= (Vector3f)origin;
     f.Rotate(rotation);
     f.Origin += (Vector3f)origin;
     return(f);
 }
예제 #2
0
 public static Frame3f Rotate(Frame3f f, Vector3d origin, Quaternionf rotation)
 {
     f.Rotate(rotation);
     f.Origin = (Vector3f)Rotate(f.Origin, origin, rotation);
     return(f);
 }