org.jscience.astronomy.solarsystem.coordinates.projecters
Class CarProjecter

java.lang.Object
  extended by org.jscience.astronomy.solarsystem.coordinates.Transformer
      extended by org.jscience.astronomy.solarsystem.coordinates.Projecter
          extended by org.jscience.astronomy.solarsystem.coordinates.projecters.CarProjecter
All Implemented Interfaces:
Named

public final class CarProjecter
extends Projecter

This class implements the Cartesian (rectangular) projection. Note that the tangent point is assumed to be at the north pole. This class assumes preallocated arrays for maximum efficiency.


Nested Class Summary
 class CarProjecter.CarDeprojecter
           
 
Constructor Summary
CarProjecter()
           
 
Method Summary
 java.lang.String getDescription()
          Return a description of the component
 java.lang.String getName()
          Get the name of the compontent
 Deprojecter inverse()
          Get the inverse transformation
 boolean isInverse(Transformer t)
          Is this an inverse of some other transformation?
 void transform(double[] sphere, double[] plane)
          Do the transfromation
 
Methods inherited from class org.jscience.astronomy.solarsystem.coordinates.Projecter
getInputDimension, getOutputDimension
 
Methods inherited from class org.jscience.astronomy.solarsystem.coordinates.Transformer
transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CarProjecter

public CarProjecter()
Method Detail

getName

public java.lang.String getName()
Get the name of the compontent

Returns:
DOCUMENT ME!

getDescription

public java.lang.String getDescription()
Return a description of the component


inverse

public Deprojecter inverse()
Get the inverse transformation

Specified by:
inverse in class Projecter

isInverse

public boolean isInverse(Transformer t)
Is this an inverse of some other transformation?

Specified by:
isInverse in class Transformer

transform

public final void transform(double[] sphere,
                            double[] plane)
Do the transfromation

Specified by:
transform in class Transformer
Parameters:
sphere - The input vector.
plane - The output vector, it may be the same as the input vector if the dimensionalities are the same. All transformers are expected to work with aliased inputs and output.