sdr 0.21

net.cscott.sdr.util
Class Box

java.lang.Object
  extended by net.cscott.sdr.util.Box

public class Box
extends Object

An orthogonal box, with sides parallel to the x and y axes.


Field Summary
 Point ll
           
 Point ur
           
 
Constructor Summary
Box(Point ll, Point ur)
           
 
Method Summary
 Point center()
           
 boolean equals(Object o)
           
 int hashCode()
           
 Fraction height()
           
 String toString()
           
 Fraction width()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ll

public final Point ll

ur

public final Point ur
Constructor Detail

Box

public Box(Point ll,
           Point ur)
Method Detail

height

public Fraction height()

width

public Fraction width()

center

public Point center()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

sdr 0.21

Copyright (c) 2006 C. Scott Ananian