Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="r0"></param>
 /// <param name="r1"></param>
 public static Rotation3d CreateRelative(ref Rotation3d r0, ref Rotation3d r1)
 {
     return(r1.Apply(r0.Inverse));
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="r0"></param>
 /// <param name="r1"></param>
 public static Rotation3d Multiply(ref Rotation3d r0, ref Rotation3d r1)
 {
     return(r0.Apply(r1));
 }
Beispiel #3
0
 /// <summary>
 /// Inverts this transformation in place.
 /// </summary>
 public void Invert()
 {
     Scale = 1.0 / Scale;
     Rotation.Invert();
     Translation = Rotation.Apply(-Translation) * Scale;
 }
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="rotation"></param>
 /// <param name="vector"></param>
 public static Vec3d Multiply(ref Rotation3d rotation, Vec3d vector)
 {
     return(rotation.Apply(vector));
 }
Beispiel #5
0
 /// <summary>
 /// Inverts this transformation in place.
 /// </summary>
 public void Invert()
 {
     Rotation.Invert();
     Translation = Rotation.Apply(-Translation);
 }