| Constructor and Description |
|---|
CoordinateSystem(Axis[] axes,
Unit[] units)
Create a new Coordinate System from an array of
Axis |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
format(double[] coord)
Return a String representation of this coordinate in this
CoordinateSystem. |
Axis |
getAxis(int i)
Return the
Axis with index i of this CoordinateSystem. |
int |
getDimension()
Return the axes number of this CoordinateSystem.
|
int |
getIndex(Axis axis)
Return the index of
Axis axis or -1 if axis is not part of this
CoordinateSystem. |
Unit |
getUnit(int i)
Return the
Unit for Axis with index i of this CoordinateSystem. |
int |
hashCode() |
String |
toString()
Return a String representation of this CoordinateSystem.
|
public Axis getAxis(int i) throws ArrayIndexOutOfBoundsException
Axis with index i of this CoordinateSystem.i - index of the Axis to returnArrayIndexOutOfBoundsExceptionpublic Unit getUnit(int i) throws ArrayIndexOutOfBoundsException
Unit for Axis with index i of this CoordinateSystem.i - index of the Axis for which Unit is returnedArrayIndexOutOfBoundsExceptionpublic int getDimension()
public int getIndex(Axis axis)
Axis axis or -1 if axis is not part of this
CoordinateSystem. If there is many axes of the CoordinateSystem equals to
the axis in argument, the minimum index of these axes is returned.axis - the axis whose index is looked forpublic String format(double[] coord) throws CoordinateDimensionException
CoordinateSystem.coord - the coordinate to formatCoordinateDimensionExceptionpublic String toString()
Copyright © 2019 CNRS. All rights reserved.