org.cts.op
Class OppositeCoordinate

java.lang.Object
  extended by org.cts.IdentifiableComponent
      extended by org.cts.op.AbstractCoordinateOperation
          extended by 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

Field Summary
 
Fields inherited from class org.cts.op.AbstractCoordinateOperation
precision
 
Fields inherited from interface org.cts.Identifiable
DEFAULT, LOCAL, UNKNOWN
 
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.op.AbstractCoordinateOperation
getPrecision
 
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 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

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
Method Detail

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.