clan::Sizex< Type > Singleton Reference

2D (width,height) size structure. More...

#include <size.h>

Public Member Functions

 Sizex ()
 Constructs a size structure. More...
 
 Sizex (Type width, Type height)
 Constructs a size structure. More...
 
 Sizex (const Sizex< Type > &s)
 Constructs a size structure. More...
 
 operator Vec2< Type > () const
 
bool operator!= (const Sizex< Type > &s) const
 Size != Size operator (deep compare). More...
 
Sizex< Type > operator* (const Type &s) const
 Size * operator. More...
 
Sizex< Type > & operator*= (const Type &s)
 Size *= operator. More...
 
Sizex< Type > operator+ (const Sizex< Type > &s) const
 Size + Size operator. More...
 
Sizex< Type > operator+ (const Type &s) const
 Size + operator. More...
 
Sizex< Type > & operator+= (const Sizex< Type > &s)
 Size += Size operator. More...
 
Sizex< Type > & operator+= (const Type &s)
 Size += operator. More...
 
Sizex< Type > operator- (const Sizex< Type > &s) const
 Size - Size operator. More...
 
Sizex< Type > operator- (const Type &s) const
 Size - operator. More...
 
Sizex< Type > & operator-= (const Sizex< Type > &s)
 Size -= Size operator. More...
 
Sizex< Type > & operator-= (const Type &s)
 Size -= operator. More...
 
Sizex< Type > operator/ (const Type &s) const
 Size / operator. More...
 
Sizex< Type > & operator/= (const Type &s)
 Size /= operator. More...
 
bool operator== (const Sizex< Type > &s) const
 Size == Size operator (deep compare). More...
 

Public Attributes

Type height
 Size height. More...
 
Type width
 Size width. More...
 

Detailed Description

template<typename Type>
singleton clan::Sizex< Type >

2D (width,height) size structure.

These line templates are defined for: int (Size), float (Sizef), double (Sized)

Constructor & Destructor Documentation

template<typename Type>
clan::Sizex< Type >::Sizex ( )
inline

Constructs a size structure.

template<typename Type>
clan::Sizex< Type >::Sizex ( Type  width,
Type  height 
)
inline

Constructs a size structure.

Parameters
widthInitial width of size structure.
heightInitial height of size structure.
template<typename Type>
clan::Sizex< Type >::Sizex ( const Sizex< Type > &  s)
inline

Constructs a size structure.

Parameters
s= Size structure to construct this one from.

Member Function Documentation

template<typename Type>
clan::Sizex< Type >::operator Vec2< Type > ( ) const
inline
template<typename Type>
bool clan::Sizex< Type >::operator!= ( const Sizex< Type > &  s) const
inline

Size != Size operator (deep compare).

template<typename Type>
Sizex<Type> clan::Sizex< Type >::operator* ( const Type &  s) const
inline

Size * operator.

template<typename Type>
Sizex<Type>& clan::Sizex< Type >::operator*= ( const Type &  s)
inline

Size *= operator.

template<typename Type>
Sizex<Type> clan::Sizex< Type >::operator+ ( const Sizex< Type > &  s) const
inline

Size + Size operator.

template<typename Type>
Sizex<Type> clan::Sizex< Type >::operator+ ( const Type &  s) const
inline

Size + operator.

template<typename Type>
Sizex<Type>& clan::Sizex< Type >::operator+= ( const Sizex< Type > &  s)
inline

Size += Size operator.

template<typename Type>
Sizex<Type>& clan::Sizex< Type >::operator+= ( const Type &  s)
inline

Size += operator.

template<typename Type>
Sizex<Type> clan::Sizex< Type >::operator- ( const Sizex< Type > &  s) const
inline

Size - Size operator.

template<typename Type>
Sizex<Type> clan::Sizex< Type >::operator- ( const Type &  s) const
inline

Size - operator.

template<typename Type>
Sizex<Type>& clan::Sizex< Type >::operator-= ( const Sizex< Type > &  s)
inline

Size -= Size operator.

template<typename Type>
Sizex<Type>& clan::Sizex< Type >::operator-= ( const Type &  s)
inline

Size -= operator.

template<typename Type>
Sizex<Type> clan::Sizex< Type >::operator/ ( const Type &  s) const
inline

Size / operator.

template<typename Type>
Sizex<Type>& clan::Sizex< Type >::operator/= ( const Type &  s)
inline

Size /= operator.

template<typename Type>
bool clan::Sizex< Type >::operator== ( const Sizex< Type > &  s) const
inline

Size == Size operator (deep compare).

Member Data Documentation


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