org.cts.op
Class OppositeCoordinate
java.lang.Object
org.cts.IdentifiableComponent
org.cts.op.AbstractCoordinateOperation
org.cts.op.OppositeCoordinate
- All Implemented Interfaces:
- Identifiable, CoordinateOperation
public class OppositeCoordinate
- extends AbstractCoordinateOperation
This transformation turn the choosing coordinate into its opposite.
- Author:
- Jules Party
|
Constructor Summary |
OppositeCoordinate(int index)
Construct the transformation turning the value at the given index into
its opposite. |
|
Method Summary |
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation. |
double[] |
transform(double[] coord)
Apply the OppositeCoordinate transformation to input coordinates. |
| Methods inherited from class org.cts.IdentifiableComponent |
addAlias, addRemark, equals, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, hashCode, setIdentifier, setRemarks, setShortName, toString |
| Methods inherited from interface org.cts.Identifiable |
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName |
OppositeCoordinate
public OppositeCoordinate(int index)
- Construct the transformation turning the value at the given index into
its opposite.
- Parameters:
index - the index of the value to turn into its opposite
transform
public double[] transform(double[] coord)
throws IllegalCoordinateException
- Apply the OppositeCoordinate transformation to input coordinates.
- Specified by:
transform in interface CoordinateOperation- Specified by:
transform in class AbstractCoordinateOperation
- Parameters:
coord - is an array containing one, two or three ordinates
- Returns:
- a double array containing the output coordinate
- Throws:
IllegalCoordinateException
inverse
public CoordinateOperation inverse()
throws NonInvertibleOperationException
- Creates the inverse CoordinateOperation.
- Specified by:
inverse in interface CoordinateOperation- Overrides:
inverse in class AbstractCoordinateOperation
- Throws:
NonInvertibleOperationException
Copyright © 2014 IRSTV CNRS-FR-2488. All Rights Reserved.