public static GetLocalRotation ( &rotation, &targetBasis, &localRotation ) : void | ||
rotation | Rotation in the original frame of reference. | |
targetBasis | Basis in the original frame of reference to transform the rotation into. | |
localRotation | Rotation in the local space of the target basis. | |
return | void |
public static void GetLocalRotation(ref Quaternion rotation, ref Quaternion targetBasis, out Quaternion localRotation)
{
Quaternion basisInverse;
Conjugate(ref targetBasis, out basisInverse);
Concatenate(ref rotation, ref basisInverse, out localRotation);
}
}