|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cts.IdentifiableComponent
org.cts.op.AbstractCoordinateOperation
org.cts.op.LongitudeRotation
public class LongitudeRotation
Longitude rotation is a simple transformation which shift the longitude parameter of a geographic coordinate.
| Field Summary |
|---|
| Fields inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
precision |
| Fields inherited from interface org.cts.Identifiable |
|---|
DEFAULT, LOCAL, UNKNOWN |
| Constructor Summary | |
|---|---|
LongitudeRotation(double rotation)
Create a new LongitudeRotation converter. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Returns true if object is equals to this. |
static LongitudeRotation |
getLongitudeRotationFrom(PrimeMeridian targetPM)
Creates a new LongitudeRotation from this PrimeMeridian to Greenwich. |
static LongitudeRotation |
getLongitudeRotationTo(PrimeMeridian targetPM)
Creates a new LongitudeRotation from Greenwich to this PrimeMeridian. |
double |
getRotationAngle()
|
int |
hashCode()
Returns the hash code for this LongitudeRotation. |
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation. |
String |
toString()
Return a String representation of this Geographic/Geocentric converter. |
double[] |
transform(double[] coord)
Return a coordinate representing the same point as coord but in a geographic coordinate system based on a different prime meridian. |
| Methods inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
getPrecision |
| Methods inherited from class org.cts.IdentifiableComponent |
|---|
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, setIdentifier, setRemarks, setShortName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.cts.Identifiable |
|---|
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName |
| Constructor Detail |
|---|
public LongitudeRotation(double rotation)
Create a new LongitudeRotation converter.
rotation - rotation angle in radians| Method Detail |
|---|
public double[] transform(double[] coord)
throws IllegalCoordinateException
Return a coordinate representing the same point as coord but in a geographic coordinate system based on a different prime meridian.
transform in interface CoordinateOperationtransform in class AbstractCoordinateOperationcoord - is an array containing 2 or 3 double representing geographic
coordinate in the following order : latitude (radians), longitude
(radians from Greenwich) and optionnaly ellipsoidal height
IllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.
public CoordinateOperation inverse()
throws NonInvertibleOperationException
inverse in interface CoordinateOperationinverse in class AbstractCoordinateOperationNonInvertibleOperationExceptionpublic static LongitudeRotation getLongitudeRotationTo(PrimeMeridian targetPM)
targetPM - target prime meridianpublic static LongitudeRotation getLongitudeRotationFrom(PrimeMeridian targetPM)
targetPM - target prime meridianpublic String toString()
toString in class IdentifiableComponentpublic double getRotationAngle()
public boolean equals(Object o)
this. Tests equality between the rotationAngles used by the
transformation.
equals in class IdentifiableComponentobject - The object to compare this LongitudeRotation againstpublic int hashCode()
hashCode in class IdentifiableComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||