/// <summary> /// Creates a new vector using the maximum value components of the given vectors. /// </summary> /// <param name="v1">first vector</param> /// <param name="v2">second vector</param> /// <returns>vector containing max x and y from the other two</returns> public static Vector2F Max(Vector2F v1, Vector2F v2) { return(new Vector2F( Fix32.Max(v1.x, v2.x), Fix32.Max(v1.y, v2.y) )); }
/// <summary> /// Creates a new vector using the maximum value components of the given vectors. /// </summary> /// <param name="v1">first vector</param> /// <param name="v2">second vector</param> /// <returns>vector containing max x and y from the other two</returns> public static Vector3F Max(Vector3F v1, Vector3F v2) { return(new Vector3F( Fix32.Max(v1.x, v2.x), Fix32.Max(v1.y, v2.y), Fix32.Max(v1.z, v2.z) )); }