vec_math
Class CentralProjection
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
vec_math.CentralProjection
- All Implemented Interfaces:
- Cloneable, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying, Projection
public abstract class CentralProjection
- extends PropertyBundles
- implements Projection
Abstract base class for sphere to planar projections. This class is only
used for central projection, i.e. projections with a defined center of
projection. The simpliest application is the orthonormal projection.
The coordinate system used on the sphere is the longitude/latitude system,
commonly used in astronomy and geography. Both coordinates are in degrees.
|
Constructor Summary |
CentralProjection(double longcen,
double laticen)
Constructs a new AzimuthalProjection with given projectional center. |
CentralProjection(Map<String,String> prop)
Constructs a new AzimuthalProjection with given the given properties. |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_CENTRALLONGITUDE
public static final String KEY_CENTRALLONGITUDE
- The key to the central longitude.
- See Also:
- Constant Field Values
KEY_CENTRALLATITUDE
public static final String KEY_CENTRALLATITUDE
- The key to the central longitude.
- See Also:
- Constant Field Values
CentralProjection
public CentralProjection(Map<String,String> prop)
- Constructs a new AzimuthalProjection with given the given properties.
CentralProjection
public CentralProjection(double longcen,
double laticen)
- Constructs a new AzimuthalProjection with given projectional center.
- Parameters:
longcen - Longitude of projection center, in degrees.laticen - Latitude of projection center, in degrees.
getCentralLongitude
public double getCentralLongitude()
- Returns the longitude of the center of projection.
- Returns:
- The longitude of the projection center in degrees.
getCentralLatitude
public double getCentralLatitude()
- Returns the latitude of the center of projection.
- Returns:
- The latitude of the projection center in degrees.
equals
public boolean equals(Object that)
- Tests, if two central projections are equal. Equality is given,
if the central longitude and latitudes are equal.
- Overrides:
equals in class Object
toString
public String toString()
- Converts this central projection into a String.
- Overrides:
toString in class PropertyContainer