Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Inverts this transformation in place.
 /// </summary>
 public void Invert()
 {
     Scale = 1.0 / Scale;
     Rotation.Invert();
     Translation = Rotation.Apply(-Translation) * Scale;
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Inverts this transformation in place.
 /// </summary>
 public void Invert()
 {
     Rotation.Invert();
     Translation = Rotation.Apply(-Translation);
 }