/// <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); }
/// <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)); }
/// <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); }