public static void Clamp(ref Vector2 value1, ref Vector2 min, ref Vector2 max, out Vector2 result) { var v4 = VectorOperations.Min(VectorOperations.Max( new Vector4f(value1.X, value1.Y, 0f, 0f), new Vector4f(min.X, min.Y, 0f, 0f)), new Vector4f(max.X, max.Y, 0f, 0f)); result = new Vector2(v4.X, v4.Y); }
public static void Min(ref Vector2 value1, ref Vector2 value2, out Vector2 result) { result = new Vector2(VectorOperations.Min(value1.m_fVector4, value2.m_fVector4)); }