Exemple #1
0
        public static Plane operator *(Plane plane, float scale)
        {
            Plane result;

            unsafe
            {
                IDllImportApi.D3DXPlaneScale((Plane *)(&result), (Plane *)(&plane), scale);
            }
            return(result);
        }
Exemple #2
0
        public static Plane Multiply(Plane plane, float scale)
        {
            Plane result = new Plane();

            unsafe
            {
                IDllImportApi.D3DXPlaneScale((Plane *)&result, (Plane *)&plane, scale);
            }

            return(result);
        }
Exemple #3
0
 public static void Multiply(ref Plane plane, float scale, out Plane result)
 {
     unsafe
     {
         fixed(Plane *pResult = &result)
         {
             fixed(Plane *pPlane = &plane)
             {
                 IDllImportApi.D3DXPlaneScale(pResult, pPlane, scale);
             }
         }
     }
 }