public class GeoBearing extends GeoPolyline
Constructor and Description |
---|
GeoBearing(GeoCoord start,
double angle,
double length)
Create a new GeoBearing from the specified start point with the
specified azimuth and length.
|
GeoBearing(GeoCoord start,
double angle,
double length,
double increment)
Create a new GeoBearing from the specified start point with the
specified azimuth and length.
|
Modifier and Type | Method and Description |
---|---|
double |
getAzimuth()
Gets the azimuth for this line of bearing.
|
double |
getLength()
Get the bearing length
|
GeoCoord |
getStartCoord()
Get the coordinate of the start of the line of bearing
|
contains, contains, contains, contains, getBounds, getBounds2D, getCenter, getCoordinates, getData, getGeoBounds, getGeoPoints, getPathIterator, getPathIterator, getRadius, getRenderStyle, intersects, intersects, project, setData, setGeoPoints, setRenderStyle, toString
public GeoBearing(GeoCoord start, double angle, double length)
start
- the starting coordinate for the line of bearingangle
- the azimuth angle, measured in degrees, from true northlength
- the length of the line of bearing, measured in meterspublic GeoBearing(GeoCoord start, double angle, double length, double increment)
start
- the starting coordinate for the line of bearingangle
- the azimuth angle, measured in degrees, from true northlength
- the length of the line of bearing, measured in metersincrement
- the increment interval to use along the line of
bearing. This number should be a small fraction of the
length.public double getAzimuth()
public double getLength()
public GeoCoord getStartCoord()