public class Loxodrome extends Object
A loxodrome or rhumb line is an arc on an ellipsoid's surface that intersects every meridian at the same angle.
Constructor and Description |
---|
Loxodrome(GeodeticPoint point,
double azimuth,
OneAxisEllipsoid body)
Constructor building a loxodrome from an initial point and an azimuth-off-local-north heading.
|
Loxodrome(GeodeticPoint point,
double azimuth,
OneAxisEllipsoid body,
double altitude)
Constructor building a loxodrome from an initial point and an azimuth-off-local-north heading.
|
Modifier and Type | Method and Description |
---|---|
double |
getAltitude()
Get the altitude above the reference body.
|
double |
getAzimuth()
Get the azimuth.
|
OneAxisEllipsoid |
getBody()
Get the body on which the loxodrome is defined.
|
GeodeticPoint |
getPoint()
Get the geodetic point defining the loxodrome.
|
GeodeticPoint |
pointAtDistance(double distance)
Calculate the point at the specified distance from the origin point along the loxodrome.
|
public Loxodrome(GeodeticPoint point, double azimuth, OneAxisEllipsoid body)
new Loxodrome(point, azimuth, body, point.getAltitude())
point
- the initial loxodrome pointazimuth
- the heading, clockwise angle from north (radians, [0,2pi]
)body
- ellipsoid body on which the loxodrome is definedpublic Loxodrome(GeodeticPoint point, double azimuth, OneAxisEllipsoid body, double altitude)
point
- the initial loxodrome pointazimuth
- the heading, clockwise angle from north (radians, [0,2pi]
)body
- ellipsoid body on which the loxodrome is definedaltitude
- altitude above the reference bodypublic GeodeticPoint getPoint()
public double getAzimuth()
public OneAxisEllipsoid getBody()
public double getAltitude()
public GeodeticPoint pointAtDistance(double distance)
[3pi/2, 2pi]
or [0, pi/2]
). Negative distances travel in the opposite direction along
the rhumb line.
Distance is computed at the altitude of the origin point.distance
- the distance to travel (meters)Copyright © 2002-2022 CS GROUP. All rights reserved.