Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

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

#include <Dimension.h>

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

prapi::graphics::Point< T > Object List of all members.

Detailed Description

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

Dimension is used to express, well, dimensions in 2D.

The x coordinate of a Point is used as the width of a Dimension, and the y coordinate as the height. Additionally, public member variables "width" and "height" are provided as references to x and y.


Public Methods

 Dimension (T width=0, T height=0)
 Create a new Dimension with the given width and height.

 Dimension (const Dimension< T > &other)
 Copy a dimension.

 Dimension (const Point< T > &other)
 Copy a point to a dimension.

Dimension & operator= (const Point< T > &other)
 Set width and height according to the given Point object.

Dimension & operator= (const Dimension &other)
 Set width and height according to the given Dimension object.


Public Attributes

T & width
 The width of the dimension.

T & height
 The height of the dimension.


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.