public class LineCrossDetector
extends java.lang.Object
The implementation given here works. You do not need to change the logic, but there are some style problems that you do need to correct.
This file will be further altered in Checkpoint 3.
Constructor and Description |
---|
LineCrossDetector() |
Modifier and Type | Method and Description |
---|---|
static boolean |
linesCross(com.google.android.gms.maps.model.LatLng firstStart,
com.google.android.gms.maps.model.LatLng firstEnd,
com.google.android.gms.maps.model.LatLng secondStart,
com.google.android.gms.maps.model.LatLng secondEnd)
Determines whether two lines cross on a map.
|
public static boolean linesCross(com.google.android.gms.maps.model.LatLng firstStart, com.google.android.gms.maps.model.LatLng firstEnd, com.google.android.gms.maps.model.LatLng secondStart, com.google.android.gms.maps.model.LatLng secondEnd)
firstStart
- an endpoint of one linefirstEnd
- the other endpoint of that linesecondStart
- an endpoint of another linesecondEnd
- the other endpoint of that other line