OpenStructure
Public Member Functions
Rectangle2 Class Reference

#include <composite2.hh>

Public Member Functions

 Rectangle2 ()
 Rectangle2 (Vec2 topleft, Vec2 bottomright)
Real GetWidth () const
Real GetHeight () const
Vec2 GetStart () const
Vec2 GetEnd () const
void SetStart (const Vec2 &v)
void SetEnd (const Vec2 &v)
Real GetArea () const
Vec2 operator[] (unsigned index) const
Vec2operator[] (unsigned index)

Detailed Description

Definition at line 45 of file composite2.hh.


Constructor & Destructor Documentation

Rectangle2 ( Vec2  topleft,
Vec2  bottomright 
)

Member Function Documentation

Real GetArea ( ) const
Vec2 GetEnd ( ) const
Real GetHeight ( ) const
Vec2 GetStart ( ) const
Real GetWidth ( ) const
Vec2 operator[] ( unsigned  index) const
Vec2& operator[] ( unsigned  index)
void SetEnd ( const Vec2 v)
void SetStart ( const Vec2 v)

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