Exemple #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(
                GPUMath.Min(first.X, second.X),
                GPUMath.Min(first.Y, second.Y),
                GPUMath.Min(first.Z, second.Z)));
 }
Exemple #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 Index Min(Index first, Index second)
 {
     return(new Index(GPUMath.Min(first.X, second.X)));
 }
Exemple #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 Index2 Min(Index2 first, Index2 second)
 {
     return(new Index2(
                GPUMath.Min(first.X, second.X),
                GPUMath.Min(first.Y, second.Y)));
 }