BEPUutilities.Quaternion.GetRelativeRotation C# (CSharp) Method

GetRelativeRotation() public static method

Computes the rotation from the start orientation to the end orientation such that end = Quaternion.Concatenate(start, relative).
public static GetRelativeRotation ( &start, &end, &relative ) : void
start Starting orientation.
end Ending orientation.
relative Relative rotation from the start to the end orientation.
return void
        public static void GetRelativeRotation(ref Quaternion start, ref Quaternion end, out Quaternion relative)
        {
            Quaternion startInverse;
            Conjugate(ref start, out startInverse);
            Concatenate(ref startInverse, ref end, out relative);
        }