Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool IfIntersect(LineEntity Left, LineEntity Right)
- {
- Position A = Left.X;
- Position B = Left.Y;
- Position C = Right.X;
- Position D = Right.Y;
- return CheckIntersect1(A.Longitude, B.Longitude,
- C.Longitude, D.Longitude) && CheckIntersect1(A.Latitude,
- B.Latitude, C.Latitude, D.Latitude) && ReturnArea(A, B, C)
- * ReturnArea(A, B, D) <= 0 && ReturnArea(C, D, A)
- * ReturnArea(C, D, B) <= 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement