Package org.geotools.geometry.util
Class XDimension2D.Double
- Object
-
- Dimension2D
-
- Double
-
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- XDimension2D
public static final class XDimension2D.Double extends Dimension2D implements Serializable
Implement double version ofDimension2D
. This class is temporary; it will disappear if JavaSoft implementsDimension2D.Float
andDimension2D.Double
.- Author:
- Martin Desruisseaux (IRD)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
Returns the height.double
getWidth()
Returns the width.void
setSize(double w, double h)
Set width and height for this dimension.String
toString()
Returns a string representation of this dimension.-
Methods inherited from class Dimension2D
clone, setSize
-
-
-
-
Method Detail
-
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
-
-