Beispiel #1
0
 /// <summary>
 /// Computes min(first, second).
 /// </summary>
 /// <param name="first">The first argument.</param>
 /// <param name="second">The second argument.</param>
 /// <returns>The minimum of first and second value.</returns>
 public static Index3 Min(Index3 first, Index3 second)
 {
     return(new Index3(
                XMath.Min(first.X, second.X),
                XMath.Min(first.Y, second.Y),
                XMath.Min(first.Z, second.Z)));
 }
Beispiel #2
0
 /// <summary>
 /// Computes min(first, second).
 /// </summary>
 /// <param name="first">The first argument.</param>
 /// <param name="second">The second argument.</param>
 /// <returns>The minimum of first and second value.</returns>
 public static Index2 Min(Index2 first, Index2 second)
 {
     return(new Index2(
                XMath.Min(first.X, second.X),
                XMath.Min(first.Y, second.Y)));
 }
Beispiel #3
0
 /// <summary>
 /// Computes min(first, second).
 /// </summary>
 /// <param name="first">The first argument.</param>
 /// <param name="second">The second argument.</param>
 /// <returns>The minimum of first and second value.</returns>
 public static Index Min(Index first, Index second)
 {
     return(new Index(XMath.Min(first.X, second.X)));
 }