

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object org.jscience.astronomy.solarsystem.coordinates.Transformer
public abstract class Transformer
The Transformer class is the superclass for a variety of classes that transform positions represented in one frame to another. The subclasses of Transformer include:
Constructor Summary  

Transformer()

Method Summary  

protected abstract int 
getInputDimension()
Get the dimensionality of the input vectors. 
protected abstract int 
getOutputDimension()
Get the dimensionality of the output vectors. 
abstract Transformer 
inverse()
Get the inverse of the transformation. 
abstract boolean 
isInverse(Transformer trans)
Are these two transformations, inverses of each other? 
double[] 
transform(double[] in)
Convert a single point. 
void 
transform(double[][] in,
double[][] out)
Convert an array of points where the output vectors are supplied. 
abstract void 
transform(double[] in,
double[] out)
Convert a single point where the output vector is supplied. 
Methods inherited from class java.lang.Object 

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Methods inherited from interface org.jscience.util.Named 

getName 
Constructor Detail 

public Transformer()
Method Detail 

protected abstract int getOutputDimension()
protected abstract int getInputDimension()
public double[] transform(double[] in)
in
 An array giving the input vector.
public abstract Transformer inverse() throws TransformationException
TransformationException
public abstract void transform(double[] in, double[] out)
in
 The input vector.out
 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.public abstract boolean isInverse(Transformer trans)
public void transform(double[][] in, double[][] out)
in
 A set of positions to be transformed. The first dimension should
be consistent with getInputDimension, while the second is the number of
points to be transferred.out
 The updated positions. The first dimension should be consistent with
getOutputDimension, while the second is the number of points to be transferred.
This argument may point to the same data as the input.


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 