/// <summary> /// <para>Returns a vector that is made from the smallest components of two vectors.</para> /// </summary> /// <param name="lhs"></param> /// <param name="rhs"></param> public static Vector2 <TMathType> Min(Vector2 <TMathType> lhs, Vector2 <TMathType> rhs) { return(new Vector2 <TMathType>(MathT.Min(lhs.x, rhs.x), MathT.Min(lhs.y, rhs.y))); }
/// <summary> /// <para>Returns a vector that is made from the largest components of two vectors.</para> /// </summary> /// <param name="lhs"></param> /// <param name="rhs"></param> public static Vector3 <TMathType> Max(Vector3 <TMathType> lhs, Vector3 <TMathType> rhs) { return(new Vector3 <TMathType>(MathT.Max(lhs.x, rhs.x), MathT.Max(lhs.y, rhs.y), MathT.Max(lhs.z, rhs.z))); }