Exemplo n.º 1
0
 /// <summary>
 /// Applies the inverse of this rotation to the given rotation.
 /// </summary>
 /// <param name="other"></param>
 public Rotation2d ApplyInverse(Rotation2d other)
 {
     other._x = ApplyInverse(other._x);
     return(other);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a relative rotation from t0 to t1.
 /// </summary>
 /// <param name="r0"></param>
 /// <param name="r1"></param>
 /// <returns></returns>
 public static Rotation2d CreateRelative(Rotation2d r0, Rotation2d r1)
 {
     return(r1.Apply(r0.Inverse));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Applies this rotation to the given rotation.
 /// </summary>
 /// <param name="other"></param>
 public Rotation2d Apply(Rotation2d other)
 {
     other._x = Apply(other._x);
     return(other);
 }