|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.geom.AzimuthalEquidistantProjector
public class AzimuthalEquidistantProjector
A coordinate transformer that maps a point on a sphere to a point on a plane using an azimuthal equidistant projection. This projection is such that the relative distances from a point at the center of the plane to other points elsewhere on the plane are accurate in their ratios to one another. This makes it a useful projection for comparing relative distances from a fixed point.
The algorithms used in this class were taken from:
Weisstein, Eric W, "Azimuthal Equidistant Projection", from MathWorld--A Wolfram Web Resource.
Version Info:
$Revision: 1239 $ |
$Date: 2008-04-25 10:34:57 -0600 (Fri, 25 Apr 2008) $ |
$Author: dharland $ (last person to modify) |
Constructor Summary | |
---|---|
AzimuthalEquidistantProjector()
Creates a new instance. |
Method Summary | |
---|---|
SphericalPosition |
getLatLonFor(Point2D xyPosition)
Performs the inverse projection of an x,y point on a plane to a longitude, latitude position on a sphere. |
Point2D |
getXyFor(SphericalPosition sphericalPosition)
Projects the longitude, latitude position on a sphere into an x,y position on a plane. |
AffineTransform |
getXyTransformer()
Returns the 2D-to-2D planar transformer used by this projector. |
void |
setCenter(SphericalPosition centerPosition)
Sets the center point, in longitude and latitude, for this projector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AzimuthalEquidistantProjector()
Method Detail |
---|
public final void setCenter(SphericalPosition centerPosition)
centerPosition
- the center point, in longitude and latitude, for this projector.public AffineTransform getXyTransformer()
This projector turns a longitude or latitude of ninety degrees into an x or y value of one-half pi. By properly configuring the returned transformer, you can change this projector's center coordinate and x and y ranges to other values.
public Point2D getXyFor(SphericalPosition sphericalPosition)
affine transform
that may be configured
by clients.
sphericalPosition
- a longitude, latitude coordinate pair on a sphere.
(The distance attribute is ignored.)
public SphericalPosition getLatLonFor(Point2D xyPosition) throws NoninvertibleTransformException
affine transform
that may be configured
by clients. It is then run through the inverse of an azimuthal
equidistant projection.
xyPosition
- an x,y position on a plane.
NoninvertibleTransformException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |