Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement