Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
59
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,
  10. C.Longitude, D.Longitude) && CheckIntersect1(A.Latitude,
  11. B.Latitude, C.Latitude, D.Latitude) && ReturnArea(A, B, C)
  12. * ReturnArea(A, B, D) <= 0 && ReturnArea(C, D, A)
  13. * ReturnArea(C, D, B) <= 0;
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement