Пример #1
0
 /// <summary>
 /// Computes max(first, second).
 /// </summary>
 /// <param name="first">The first argument.</param>
 /// <param name="second">The second argument.</param>
 /// <returns>The maximum of first and second value.</returns>
 public static Index3 Max(Index3 first, Index3 second)
 {
     return(new Index3(
                XMath.Max(first.X, second.X),
                XMath.Max(first.Y, second.Y),
                XMath.Max(first.Z, second.Z)));
 }
Пример #2
0
 /// <summary>
 /// Computes max(first, second).
 /// </summary>
 /// <param name="first">The first argument.</param>
 /// <param name="second">The second argument.</param>
 /// <returns>The maximum of first and second value.</returns>
 public static Index2 Max(Index2 first, Index2 second)
 {
     return(new Index2(
                XMath.Max(first.X, second.X),
                XMath.Max(first.Y, second.Y)));
 }
Пример #3
0
 /// <summary>
 /// Computes max(first, second).
 /// </summary>
 /// <param name="first">The first argument.</param>
 /// <param name="second">The second argument.</param>
 /// <returns>The maximum of first and second value.</returns>
 public static Index Max(Index first, Index second)
 {
     return(new Index(XMath.Max(first.X, second.X)));
 }