libwallaby  v24
The wallaby standard library
Rect< T > Class Template Reference

#include <geom.hpp>

Public Member Functions

 Rect (const T &x, const T &y, const T &width, const T &height)
 
const T & x () const
 
const T & y () const
 
const T & width () const
 
const T & height () const
 
Point2< T > center () const
 
void setX (const T &x)
 
void setY (const T &y)
 
void setWidth (const T &width)
 
void setHeight (const T &height)
 
area () const
 
rectangle toCRectangle () const
 

Constructor & Destructor Documentation

◆ Rect()

template<typename T>
Rect< T >::Rect ( const T &  x,
const T &  y,
const T &  width,
const T &  height 
)
inline

Member Function Documentation

◆ area()

template<typename T>
T Rect< T >::area ( ) const
inline

◆ center()

template<typename T>
Point2<T> Rect< T >::center ( ) const
inline

◆ height()

template<typename T>
const T& Rect< T >::height ( ) const
inline

◆ setHeight()

template<typename T>
void Rect< T >::setHeight ( const T &  height)
inline

◆ setWidth()

template<typename T>
void Rect< T >::setWidth ( const T &  width)
inline

◆ setX()

template<typename T>
void Rect< T >::setX ( const T &  x)
inline

◆ setY()

template<typename T>
void Rect< T >::setY ( const T &  y)
inline

◆ toCRectangle()

template<typename T>
rectangle Rect< T >::toCRectangle ( ) const
inline

◆ width()

template<typename T>
const T& Rect< T >::width ( ) const
inline

◆ x()

template<typename T>
const T& Rect< T >::x ( ) const
inline

◆ y()

template<typename T>
const T& Rect< T >::y ( ) const
inline

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