com.planeth.common.geom
Class Rectangle

java.lang.Object
  extended bycom.planeth.common.geom.Shape
      extended bycom.planeth.common.geom.Rectangle

public class Rectangle
extends Shape

A Rectangle Shape

Author:
Andreas Grässer, gal@planet-h.com.
created 16.10.2005

Nested Class Summary
 
Nested classes inherited from class com.planeth.common.geom.Shape
Shape.Bounds
 
Constructor Summary
Rectangle(double width, double height)
          Constructor for Rectangle.
Rectangle(Vector2D size)
          Constructor for Rectangle.
 
Methods inherited from class com.planeth.common.geom.Shape
explode, getBounds, getColor, getVertexes, paint, randomize, setColor, setFilled, setVertexes, setVisible, split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rectangle

public Rectangle(double width,
                 double height)
Constructor for Rectangle.

Parameters:
width - the width of the Rectangle
height - the height of the Rectangle

Rectangle

public Rectangle(Vector2D size)
Constructor for Rectangle.

Parameters:
size - the size of the Rectangle