Exemple #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);
 }
Exemple #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));
 }
Exemple #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);
 }