Package videoRangePanel.vrmethods
Class ShoreManager
java.lang.Object
videoRangePanel.vrmethods.ShoreManager
Separate class to manage shore functions for the video range, all this could
go in the controller, but might as well keep it separate.
- Author:
- Douglas Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIntercept
(LatLong origin, double bearing, LatLong ll1, LatLong ll2) See if a line drawn at a given bearing from some origin intercepts a line between two other points.getShoreInterceptList
(LatLong origin, double trueBearing) double[]
getSortedShoreRanges
(LatLong origin, double trueBearing) void
setMapFileManager
(MapFileManager mapFileManager)
-
Constructor Details
-
ShoreManager
public ShoreManager() -
ShoreManager
-
-
Method Details
-
getMapFileManager
-
setMapFileManager
-
getShoreInterceptList
-
getIntercept
See if a line drawn at a given bearing from some origin intercepts a line between two other points. If they do, then return the LatLong of the intercept point, otherwise return null.- Parameters:
origin
- origin of bearing linebearing
- true bearing (degrees clockwise from North)ll1
- lat long of start of line segmentll2
- lat long of end of line segment- Returns:
- LatLong of intercept or null
-
getSortedShoreRanges
-