Package ucar.nc2.dt.ugrid.geom
Class Point3D.Float
- java.lang.Object
-
- ucar.nc2.dt.ugrid.geom.Point3D
-
- ucar.nc2.dt.ugrid.geom.Point3D.Float
-
- All Implemented Interfaces:
Serializable,Cloneable
- Enclosing class:
- Point3D
public static class Point3D.Float extends Point3D implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.dt.ugrid.geom.Point3D
Point3D.Double, Point3D.Float
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetX()Returns the X coordinate of thisPoint3Dindoubleprecision.doublegetY()Returns the Y coordinate of thisPoint3Dindoubleprecision.doublegetZ()Returns the Z coordinate of thisPoint3Dindoubleprecision.voidmoveBy(double dx, double dy, double dz)Moves thePoint3Dby the amount indicated by the specifieddoublemagnitudes.voidmoveBy(float dx, float dy, float dz)Moves thePoint3Dby the amount indicated by the specifiedfloatmagnitudes.voidsetLocation(double x, double y, double z)Sets the location of thisPoint3Dto the specifieddoublecoordinates.voidsetLocation(float x, float y, float z)Sets the location of thisPoint3Dto the specifiedfloatcoordinates.StringtoString()Returns aStringthat represents the value of thisPoint3D.-
Methods inherited from class ucar.nc2.dt.ugrid.geom.Point3D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, setLocation
-
-
-
-
Constructor Detail
-
Float
public Float()
Constructs and initializes aPoint3Dwith coordinates (0, 0, 0).
-
Float
public Float(float x, float y, float z)Constructs and initializes aPoint3Dwith the specified coordinates.- Parameters:
x- the X coordinate of the newly constructedPoint3Dy- the Y coordinate of the newly constructedPoint3Dz- the Z coordinate of the newly constructedPoint3D
-
-
Method Detail
-
getX
public double getX()
Returns the X coordinate of thisPoint3Dindoubleprecision.
-
getY
public double getY()
Returns the Y coordinate of thisPoint3Dindoubleprecision.
-
getZ
public double getZ()
Returns the Z coordinate of thisPoint3Dindoubleprecision.
-
setLocation
public void setLocation(double x, double y, double z)Sets the location of thisPoint3Dto the specifieddoublecoordinates.- Specified by:
setLocationin classPoint3D- Parameters:
x- the new X coordinate of thisPoint3Dy- the new Y coordinate of thisPoint3Dz- the new Z coordinate of thisPoint3D
-
setLocation
public void setLocation(float x, float y, float z)Sets the location of thisPoint3Dto the specifiedfloatcoordinates.- Parameters:
x- the new X coordinate of thisPoint3Dy- the new Y coordinate of thisPoint3Dz- the new Z coordinate of thisPoint3D
-
moveBy
public void moveBy(double dx, double dy, double dz)Moves thePoint3Dby the amount indicated by the specifieddoublemagnitudes.NOTE: Units are NOT considered. The units of the
originand(u, v, w)components are assumed to be the same.
Therefore conversions (i.e. from DD to Meters) should happen BEFORE calling this method.
-
moveBy
public void moveBy(float dx, float dy, float dz)Moves thePoint3Dby the amount indicated by the specifiedfloatmagnitudes.NOTE: Units are NOT considered. The units of the
originand(u, v, w)components are assumed to be the same.
Therefore conversions (i.e. from DD to Meters) should happen BEFORE calling this method.- Parameters:
dx- the amount to move thisPoint3Din the X directiondy- the amount to move thisPoint3Din the Y directiondz- the amount to move thisPoint3Din the Z direction
-
-