ubit
Public Member Functions | Public Attributes | Friends | List of all members
ubit::UDimension Class Reference

2D Dimension. More...

#include <ugeom.hpp>

Public Member Functions

 UDimension (float _w, float _h)
 
float getWidth () const
 
float getHeight () const
 
void set (float _w, float _h)
 
void set (const UDimension &d)
 

Public Attributes

float width
 
float height
 

Friends

std::ostream & operator<< (std::ostream &, const UDimension &)
 prints the dimension on an output stream (eg: cout << dimension).
 
std::istream & operator>> (std::istream &, UDimension &)
 reads the dimension from an input stream (eg: cin >> dimension).
 

Detailed Description

2D Dimension.


The documentation for this class was generated from the following file: