mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Fixed gate passing algorithm
boats now must pass through the correct way. This works for start in-race and finish gates Refactored yacht algorithm code for better readability Logging function added or seeing mark roundings occur tags: #story[1124] #pair[hyi25, wmu16]
This commit is contained in:
@@ -193,7 +193,7 @@ public class GeoUtility {
|
||||
* @param point the point to be tested
|
||||
* @return true if the point is on the RHS of the line
|
||||
*/
|
||||
private static Boolean isClockwise(GeoPoint v1, GeoPoint v2, GeoPoint point) {
|
||||
public static Boolean isClockwise(GeoPoint v1, GeoPoint v2, GeoPoint point) {
|
||||
return getBearingDiff(getBearing(v1, v2), getBearing(v1, point)) < 180;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user