Package org.geotools.geometry.util
Class XDimension2D.Float
Object
Dimension2D
Float
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- XDimension2D
Implement float version of
Dimension2D
. This class is temporary; it will disappear if JavaSoft
implements Dimension2D.Float
and Dimension2D.Double
.- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Dimension2D
clone, setSize
-
Field Details
-
width
public float widthThe width. -
height
public float heightThe height.
-
-
Constructor Details
-
Float
public Float()Construct a new dimension initialized to (0,0). -
Float
public Float(float w, float h) Construct a new dimension with the specified values.- Parameters:
w
- The width.h
- The height.
-
-
Method Details
-
setSize
public void setSize(double w, double h) Set width and height for this dimension.- Specified by:
setSize
in classDimension2D
- Parameters:
w
- The width.h
- The height.
-
getWidth
public double getWidth()Returns the width.- Specified by:
getWidth
in classDimension2D
-
getHeight
public double getHeight()Returns the height.- Specified by:
getHeight
in classDimension2D
-
toString
Returns a string representation of this dimension.
-