liballofw
Public Member Functions | Public Attributes | List of all members
allofw::Rectangle2_< number_t > Struct Template Reference

#include <geometry.h>

Public Member Functions

 Rectangle2_ ()=default
 
 Rectangle2_ (const Vector2_< number_t > &position_, const Vector2_< number_t > &size_)
 
 Rectangle2_ (number_t w, number_t h)
 
 Rectangle2_ (number_t x, number_t y, number_t w, number_t h)
 

Public Attributes

union {
   Vector2_< number_t >   position
 
   struct {
      number_t   x
 
      number_t   y
 
   } 
 
}; 
 
union {
   Vector2_< number_t >   size
 
   struct {
      number_t   w
 
      number_t   h
 
   } 
 
}; 
 

Constructor & Destructor Documentation

template<typename number_t >
allofw::Rectangle2_< number_t >::Rectangle2_ ( )
default
template<typename number_t >
allofw::Rectangle2_< number_t >::Rectangle2_ ( const Vector2_< number_t > &  position_,
const Vector2_< number_t > &  size_ 
)
inline
template<typename number_t >
allofw::Rectangle2_< number_t >::Rectangle2_ ( number_t  w,
number_t  h 
)
inline
template<typename number_t >
allofw::Rectangle2_< number_t >::Rectangle2_ ( number_t  x,
number_t  y,
number_t  w,
number_t  h 
)
inline

Member Data Documentation

union { ... }
union { ... }
template<typename number_t >
number_t allofw::Rectangle2_< number_t >::h
template<typename number_t >
Vector2_<number_t> allofw::Rectangle2_< number_t >::position
template<typename number_t >
Vector2_<number_t> allofw::Rectangle2_< number_t >::size
template<typename number_t >
number_t allofw::Rectangle2_< number_t >::w
template<typename number_t >
number_t allofw::Rectangle2_< number_t >::x
template<typename number_t >
number_t allofw::Rectangle2_< number_t >::y

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