com.partnersoft.geometry.xy
Class XySize

java.lang.Object
  extended by com.partnersoft.geometry.xy.XySize
All Implemented Interfaces:
Immutable

public class XySize
extends java.lang.Object
implements Immutable

A rectangular size in (x, y) space.

Copyright 2007 Partner Software, Inc.

Version:
$Id: XySize.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Constructor Summary
XySize(double width, double height)
          Creates a new XySize object from the width and height given.
 
Method Summary
 double getArea()
          Returns the area (width * height).
 double getHeight()
          Returns the area's height.
 double getWidth()
          Returns the area's width.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XySize

public XySize(double width,
              double height)
Creates a new XySize object from the width and height given.

Parameters:
width - width of area
height - height of area
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getWidth

public double getWidth()
Returns the area's width.

Returns:
width

getHeight

public double getHeight()
Returns the area's height.

Returns:
height

getArea

public double getArea()
Returns the area (width * height).

Returns:
area