Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool CheckIntersect1(double a, double b, double c, double d)
- {
- if (a > b)
- Swap(ref a, ref b);
- if (c > d)
- Swap(ref c, ref d);
- return Math.Max(a, c) <= Math.Min(b, d);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement