Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::graphics::Rectangle< T > Class Template Reference

#include <Shape.h>

Inheritance diagram for prapi::graphics::Rectangle< T >:

prapi::graphics::Shape Object List of all members.

Detailed Description

template<class T>
class prapi::graphics::Rectangle< T >

Rectagle is a specialization of Shape for rectangular objects.


Public Methods

 Rectangle (T startX=0, T startY=0, T w=0, T h=0)
 Create a new Rectangle with the given upper left corner coordinates, width, and height.

 Rectangle (Dimension< T > dimension)
 Create a new Rectangle with the upper left corner coordinates set to zero and width and height set according to the given Dimension object.

bool contains (double xc, double yc) const
 Return true if (and only if) the given coordinates lie within or on the boundaries of the shape.


Public Attributes

x
 The x coordinate of the upper left corner of the rectangle.

y
 The y coordinate of the upper left corner of the rectangle.

width
 The width of the rectangle.

height
 The height of the rectangle.


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.