public static void ApproxEquals(ref Vector2 vector1, ref Vector2 vector2, float tolerance, out bool result) { result = (vector1.Distance(vector2) <= tolerance); }