public class SizeD extends Object
Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.
| Constructor and Description |
|---|
SizeD() |
SizeD(double width,
double height)
Initializes a new instance of the
SizeD struct. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
SizeD |
Clone() |
void |
CloneTo(SizeD that) |
boolean |
equals(Object obj) |
static boolean |
equals(SizeD obj1,
SizeD obj2) |
double |
getHeight()
Gets the vertical component of this
SizeD structure. |
double |
getWidth()
Gets the horizontal component of this
SizeD structure. |
int |
hashCode() |
void |
setHeight(double value)
Sets the vertical component of this
SizeD structure. |
void |
setWidth(double value)
Sets the horizontal component of this
SizeD structure. |
public SizeD()
public SizeD(double width,
double height)
Initializes a new instance of the SizeD struct.
width - The width component of the new SizeD structure.height - The height component of the new SizeD structure.public SizeD Clone()
public void CloneTo(SizeD that)
public final double getHeight()
Gets the vertical component of this SizeD structure.
SizeD structure.public final double getWidth()
Gets the horizontal component of this SizeD structure.
SizeD structure.public final void setHeight(double value)
Sets the vertical component of this SizeD structure.
value - The vertical component of this SizeD structure.public final void setWidth(double value)
Sets the horizontal component of this SizeD structure.
value - The horizontal component of this SizeD structure.Copyright © 2026. All rights reserved.