objects
Class Dimension
java.lang.Object
|
+--objects.Dimension
- All Implemented Interfaces:
- Serializable
- public class Dimension
- extends Object
- implements Serializable
This class represents a 2D area with a given width and height. It
is intended to only be used with values based on the unit
square.
- Version:
- $Revision: 1.8 $
- Author:
- Dave Jurgens
- See Also:
- Serialized Form
|
Constructor Summary |
Dimension(double width,
double height)
|
|
Method Summary |
protected static void |
boundCheck(double x,
double y)
Method for checking that a dimension is on the unit square. |
double |
getHeight()
|
double |
getWidth()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
width
private final double width
height
private final double height
Dimension
public Dimension(double width,
double height)
getWidth
public double getWidth()
getHeight
public double getHeight()
boundCheck
protected static void boundCheck(double x,
double y)
- Method for checking that a dimension is on the unit square.
To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.