Beispiel #1
0
        public static Quaternion Logarithm(Quaternion quat)
        {
            Quaternion result;

            unsafe
            {
                IDllImportApi.D3DXQuaternionLn((Quaternion *)&result, (Quaternion *)&quat);
            }
            return(result);
        }
Beispiel #2
0
 public static void Logarithm(ref Quaternion quat, out Quaternion result)
 {
     unsafe
     {
         fixed(Quaternion *pinQuat = &quat)
         {
             fixed(Quaternion *pinResult = &result)
             {
                 IDllImportApi.D3DXQuaternionLn((Quaternion *)pinResult, (Quaternion *)pinQuat);
             }
         }
     }
 }