SHARE
TWEET

Untitled

a guest May 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public bool IfIntersect(LineEntity Left, LineEntity Right)
  2. {
  3.  
  4.             Position A = Left.X;
  5.             Position B = Left.Y;
  6.             Position C = Right.X;
  7.             Position D = Right.Y;
  8.  
  9.             return CheckIntersect1(A.Longitude, B.Longitude, C.Longitude, D.Longitude)
  10. && CheckIntersect1(A.Latitude, B.Latitude, C.Latitude, D.Latitude)
  11. && ReturnArea(A, B, C) * ReturnArea(A, B, D) <= 0
  12. && ReturnArea(C, D, A) * ReturnArea(C, D, B) <= 0;
  13.            
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top