visad
Class IdentityCoordinateSystem
- java.lang.Object
-
- visad.CoordinateSystem
-
- visad.IdentityCoordinateSystem
-
- All Implemented Interfaces:
- java.io.Serializable
public class IdentityCoordinateSystem extends CoordinateSystem
A CoordinateSystem that will return the input values whentoReference()andfromReference()are called. Useful in constructingCartesianProductCoordinateSystems.- See Also:
CartesianProductCoordinateSystem, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description IdentityCoordinateSystem(RealTupleType type)Construct a newIdentityCoordinateSystemfor values of the type specified.IdentityCoordinateSystem(RealTupleType type, Unit[] units)Construct a newIdentityCoordinateSystemfor values of the type specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Check to see if the object in question is equal to this.double[][]fromReference(double[][] values)Simple implementation of abstract method.float[][]fromReference(float[][] values)Simple implementation of abstract method.double[][]toReference(double[][] values)Simple implementation of abstract method.float[][]toReference(float[][] values)Simple implementation of abstract method.-
Methods inherited from class visad.CoordinateSystem
canConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
-
-
-
-
Constructor Detail
-
IdentityCoordinateSystem
public IdentityCoordinateSystem(RealTupleType type) throws VisADException
Construct a newIdentityCoordinateSystemfor values of the type specified.- Parameters:
type- type of the values- Throws:
VisADException
-
IdentityCoordinateSystem
public IdentityCoordinateSystem(RealTupleType type, Unit[] units) throws VisADException
Construct a newIdentityCoordinateSystemfor values of the type specified.- Parameters:
type- type of the values- Throws:
VisADException
-
-
Method Detail
-
fromReference
public double[][] fromReference(double[][] values) throws VisADExceptionSimple implementation of abstract method. Returns the input values.- Specified by:
fromReferencein classCoordinateSystem- Parameters:
values- input values- Returns:
- values
- Throws:
VisADException- values are null or wrong dimension
-
toReference
public double[][] toReference(double[][] values) throws VisADExceptionSimple implementation of abstract method. Returns the input values.- Specified by:
toReferencein classCoordinateSystem- Parameters:
values- input values- Returns:
- values
- Throws:
VisADException- values are null or wrong dimension
-
fromReference
public float[][] fromReference(float[][] values) throws VisADExceptionSimple implementation of abstract method. Returns the input values.- Overrides:
fromReferencein classCoordinateSystem- Parameters:
values- input values- Returns:
- values
- Throws:
VisADException- values are null or wrong dimension
-
toReference
public float[][] toReference(float[][] values) throws VisADExceptionSimple implementation of abstract method. Returns the input values.- Overrides:
toReferencein classCoordinateSystem- Parameters:
values- input values- Returns:
- values
- Throws:
VisADException- values are null or wrong dimension
-
equals
public boolean equals(java.lang.Object o)
Check to see if the object in question is equal to this.- Specified by:
equalsin classCoordinateSystem- Parameters:
o- object in question- Returns:
- true if they are equal, otherwise false.
-
-
DMelt 3.0 © DataMelt by jWork.ORG