Boeing Simulation 3.1 API Specification

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

Field Summary
private  double height
           
private static long serialVersionUID
           
private  double width
           
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

width

private final double width

height

private final double height
Constructor Detail

Dimension

public Dimension(double width,
                 double height)
Method Detail

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.


Boeing Simulation 3.1 API Specification

To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.