|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object skyview.geometry.Projection
public class Projection
This class implements projection algorithms to/from a projection plane and the unit sphere. Data on the unit sphere is normally represented as a unit-three vector. Data in a projection plane is normally represented as a two-ple. Note that the projection is usually broken into two pieces: a transformation to a convenient location on the celestial sphere (e.g., for a TAN projection, the unit vectors are rotated so that the reference pixel is at the pole), and a functional transformation from the sphere to the plane. The project and deproject functions address this later element, while the rotation needed is encoded in in the eulerRotationMatrix.
Constructor Summary | |
---|---|
Projection(java.lang.String type)
Get the correct projection |
|
Projection(java.lang.String type,
double[] reference)
Create the specified projection. |
Method Summary | |
---|---|
static double[] |
fixedPoint(java.lang.String proj)
This static method returns the location of the default projection center for fixed point projections. |
Distorter |
getDistorter()
Get any distortion in the plane associated with this projection. |
Projecter |
getProjecter()
Get the projection algorithm associated with this rotation. |
Rotater |
getRotater()
Get the rotation that needs to be performed before the rotation. |
protected void |
setDistorter(Distorter dist)
|
void |
setReference(double lon,
double lat)
|
void |
setRotater(Rotater rot)
Update the Rotater... |
protected double[] |
specialReference()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Projection(java.lang.String type) throws TransformationException
TransformationException
public Projection(java.lang.String type, double[] reference) throws TransformationException
type
- The three character string defining
the projection.reference
- The reference point for the projection (as a coordinate pair)
TransformationException
Method Detail |
---|
public void setReference(double lon, double lat)
public static double[] fixedPoint(java.lang.String proj)
proj
- The three letter string denoting the projection.
public Rotater getRotater()
public void setRotater(Rotater rot)
public Projecter getProjecter()
public Distorter getDistorter()
protected void setDistorter(Distorter dist)
protected double[] specialReference()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |