public final class RadSize extends Object
Constructor and Description |
---|
RadSize() |
RadSize(double width,
double height)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static RadSize |
getEmpty()
Returns an instance of the
RadSize class that represents an empty (zero) size. |
double |
getHeight() |
static RadSize |
getInfinitySize()
Gets a
RadSize that has positive infinity for both width and height. |
static RadSize |
getInvalid()
Returns an instance of the
RadSize class that represents an invalid size. |
double |
getWidth() |
double |
halfHeight() |
double |
halfWidth() |
public static RadSize getEmpty()
RadSize
class that represents an empty (zero) size.
An empty size has its width
and height
fields initialized to 0.0.RadSize
instance.public static RadSize getInvalid()
RadSize
class that represents an invalid size.
An invalid size has its width
and height
fields initialized to -1.0.RadSize
instance.public static RadSize getInfinitySize()
RadSize
that has positive infinity for both width and height.public double getWidth()
public double getHeight()
public double halfWidth()
public double halfHeight()