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() [1/2]

◆ Rectangle2() [2/2]

Rectangle2 ( Vec2  topleft,
Vec2  bottomright 
)

Member Function Documentation

◆ GetArea()

Real GetArea ( ) const

◆ GetEnd()

Vec2 GetEnd ( ) const

◆ GetHeight()

Real GetHeight ( ) const

◆ GetStart()

Vec2 GetStart ( ) const

◆ GetWidth()

Real GetWidth ( ) const

◆ operator[]() [1/2]

Vec2& operator[] ( unsigned  index)

◆ operator[]() [2/2]

Vec2 operator[] ( unsigned  index) const

◆ SetEnd()

void SetEnd ( const Vec2 v)

◆ SetStart()

void SetStart ( const Vec2 v)

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