/// <summary> /// Calculates the component-wise minimum of two vectors. /// </summary> /// <param name="left">A vector.</param> /// <param name="right">Another vector.</param> /// <param name="result">The component-wise minimum of the two vectors.</param> internal static void ComponentMin(ref Vector3 left, ref Vector3 right, out Vector3 result) { //#if OPENTK || STANDALONE Vector3.ComponentMin(ref left, ref right, out result); //#elif UNITY3D // result = Vector3.Min(left, right); //#else // Vector3.Min(ref left, ref right, out result); //#endif }
/// <summary> /// Calculates the component-wise minimum of two vectors. /// </summary> /// <param name="left">A vector.</param> /// <param name="right">Another vector.</param> /// <param name="result">The component-wise minimum of the two vectors.</param> internal static void ComponentMin(ref Vector3 left, ref Vector3 right, out Vector3 result) { #if OPENTK || STANDALONE Vector3.ComponentMin(ref left, ref right, out result); #elif UNITY3D result = Vector3.Min(left, right); #else result = new Vector3( Math.Min(left.X, right.X), Math.Min(left.Y, right.Y), Math.Min(left.Z, right.Z) ); #endif }