public class CylindricalCoordinateSystem extends CoordinateSystem
Constructor and Description |
---|
CylindricalCoordinateSystem(RealTupleType reference)
construct a CoordinateSystem for (radius, azimuth, zaxis) relative
to a 3-D Cartesian reference; this constructor supplies units =
{null, CommonUnit.Degree, null} to the super
constructor, in order to ensure Unit compatibility with its
use of trigonometric functions
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object cs)
determine if the CoordinateSystem in question is a Cylindrical one
|
double[][] |
fromReference(double[][] tuples)
Convert Cartesian coordinates (x, y, z) to
cylindrical coordinates (radius, azimuth, z).
|
float[][] |
fromReference(float[][] tuples)
Convert Cartesian coordinates (x, y, z) to
cylindrical coordinates (radius, azimuth, z).
|
double[][] |
toReference(double[][] tuples)
Convert cylindrical coordinates (radius, azimuth, z) to
Cartesian coordinates (x, y, z).
|
float[][] |
toReference(float[][] tuples)
Convert cylindrical coordinates (radius, azimuth, z) to
Cartesian coordinates (x, y, z).
|
canConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
public CylindricalCoordinateSystem(RealTupleType reference) throws VisADException
reference
- Cartesian reference in the order of x, y, zVisADException
- necessary VisAD object could not be createdpublic double[][] toReference(double[][] tuples) throws CoordinateSystemException
toReference
in class CoordinateSystem
tuples
- double array containing the radius, azimuth and z values.CoordinateSystemException
- if input array is null or wrong
dimension.public double[][] fromReference(double[][] tuples) throws CoordinateSystemException
fromReference
in class CoordinateSystem
tuples
- double array in Cartesian coordinates ordered as x, y, zCoordinateSystemException
- if input array is null or wrong
dimension.public float[][] toReference(float[][] tuples) throws CoordinateSystemException
toReference
in class CoordinateSystem
tuples
- float array containing the radius, azimuth and z values.CoordinateSystemException
- if input array is null or wrong
dimension.public float[][] fromReference(float[][] tuples) throws CoordinateSystemException
fromReference
in class CoordinateSystem
tuples
- float array in Cartesian coordinates ordered as x, y, zCoordinateSystemException
- if input array is null or wrong
dimension.public boolean equals(Object cs)
equals
in class CoordinateSystem
cs
- the CoordinateSystem in questiontrue
if and only if this instance equals cs.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.