visad.data.visad
Class FakeCoordinateSystem

java.lang.Object
  extended byvisad.CoordinateSystem
      extended byvisad.data.visad.FakeCoordinateSystem
All Implemented Interfaces:
Serializable

class FakeCoordinateSystem
extends CoordinateSystem


Constructor Summary
FakeCoordinateSystem(RealTupleType rtt, Unit[] unit)
           
 
Method Summary
 boolean equals(Object obj)
          Indicates whether or not this instance is equal to an object (note must test for cs == null).
 double[][] fromReference(double[][] d)
          Convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array.
 double[][] toReference(double[][] d)
          Convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array.
 
Methods inherited from class visad.CoordinateSystem
canConvert, fromReference, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeCoordinateSystem

public FakeCoordinateSystem(RealTupleType rtt,
                            Unit[] unit)
                     throws VisADException
Method Detail

toReference

public double[][] toReference(double[][] d)
Description copied from class: CoordinateSystem
Convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array.

Specified by:
toReference in class CoordinateSystem
Parameters:
d - array of values assumed to be in coordinateSystem units. Input array is not guaranteed to be immutable and could be used for return.
Returns:
array of double values in reference coordinates and Units.

fromReference

public double[][] fromReference(double[][] d)
Description copied from class: CoordinateSystem
Convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array.

Specified by:
fromReference in class CoordinateSystem
Parameters:
d - array of values assumed to be in reference Units. Input array is not guaranteed to be immutable and could be used for return.
Returns:
array of double values in CoordinateSystem Units.

equals

public boolean equals(Object obj)
Description copied from class: CoordinateSystem
Indicates whether or not this instance is equal to an object (note must test for cs == null).

Specified by:
equals in class CoordinateSystem
Parameters:
obj - the object in question.
Returns:
true if and only if this instance equals cs.