Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Faro::IRect< T > Struct Template Reference

#include <Rect.hpp>

Public Member Functions

 IRect ()
 
 IRect (T x, T y, T w, T h)
 
 IRect (Vector2< T > topLeft, Vector2< T > extend)
 
Area () const
 
Vector2< T > Size () const
 
Vector2< T > Center ()
 
bool operator== (const IRect &other) const
 
bool operator!= (const Vector2< T > &other) const
 
IRect Lerp (const IRect &r, float fact) const
 
String ToString ()
 
template<class N >
IRect< N > ToType ()
 

Public Attributes

union { 
 
   Vector2< T >   points [2] 
 
   struct { 
 
      Vector2< T >   topLeft 
 
      Vector2< T >   bottomRight 
 
   }  
 
   struct { 
 
      T   x1 
 
      T   y1 
 
      T   x2 
 
      T   y2 
 
   }  
 
};  
 

Constructor & Destructor Documentation

◆ IRect() [1/3]

template<class T >
Faro::IRect< T >::IRect ( )
inline

◆ IRect() [2/3]

template<class T >
Faro::IRect< T >::IRect ( x,
y,
w,
h 
)
inline

◆ IRect() [3/3]

template<class T >
Faro::IRect< T >::IRect ( Vector2< T >  topLeft,
Vector2< T >  extend 
)
inline

Member Function Documentation

◆ Area()

template<class T >
T Faro::IRect< T >::Area ( ) const
inline

◆ Center()

template<class T >
Vector2< T > Faro::IRect< T >::Center ( )
inline

◆ Lerp()

template<class T >
IRect Faro::IRect< T >::Lerp ( const IRect< T > &  r,
float  fact 
) const
inline

◆ operator!=()

template<class T >
bool Faro::IRect< T >::operator!= ( const Vector2< T > &  other) const
inline

◆ operator==()

template<class T >
bool Faro::IRect< T >::operator== ( const IRect< T > &  other) const
inline

◆ Size()

template<class T >
Vector2< T > Faro::IRect< T >::Size ( ) const
inline

◆ ToString()

template<class T >
String Faro::IRect< T >::ToString ( )
inline

◆ ToType()

template<class T >
template<class N >
IRect< N > Faro::IRect< T >::ToType ( )
inline

Member Data Documentation

◆ [union]

union { ... } Faro::IRect< T >

◆ bottomRight

template<class T >
Vector2<T> Faro::IRect< T >::bottomRight

◆ points

template<class T >
Vector2<T> Faro::IRect< T >::points[2]

◆ topLeft

template<class T >
Vector2<T> Faro::IRect< T >::topLeft

◆ x1

template<class T >
T Faro::IRect< T >::x1

◆ x2

template<class T >
T Faro::IRect< T >::x2

◆ y1

template<class T >
T Faro::IRect< T >::y1

◆ y2

template<class T >
T Faro::IRect< T >::y2

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