/// <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))); }
/// <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))); }
/// <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))); }