public static class Size2D.Float extends Size2D implements Serializable
Float class defines dimensions specified in float
coordinates.Size2D.Float| Modifier and Type | Field and Description |
|---|---|
float |
height
The height of this
Size2D. |
float |
width
The width of this
Size2D. |
| Constructor and Description |
|---|
Float()
Creates the Size2D instance.
|
Float(float width,
float height)
Creates the Size2D instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight() |
double |
getWidth() |
void |
setSize(double w,
double h) |
void |
setSize(float w,
float h)
Sets the dimensions of this
Size2D
to the specified float values. |
clone, setSizepublic float width
Size2D.public float height
Size2D.public Float()
Creates the Size2D instance.
public Float(float width,
float height)
Creates the Size2D instance.
width - The width.height - The height.public void setSize(float w,
float h)
Size2D
to the specified float values.w - The width of this Size2Dh - The height of this Size2Dpublic void setSize(double w,
double h)
setSize in class Dimension2Dpublic double getWidth()
getWidth in class Dimension2Dpublic double getHeight()
getHeight in class Dimension2DCopyright © 2025 Aspose. All Rights Reserved.