Image Component Library (ICL)
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
icl::utils::Size32f Class Reference

Size32f class of the ICL (float valued) More...

#include <Size32f.h>

Public Member Functions

 Size32f ()
 default constructor More...
 
 Size32f (const Size32f &s)
 deep copy of another Size32f More...
 
 Size32f (float width, float height)
 creates a specified size More...
 
 Size32f (const Size &other)
 creates a float-size from given int size More...
 
bool isNull () const
 checks wether the object instance is null, i.e. all elements are zero More...
 
bool operator== (const Size32f &s) const
 checks if two sizes are equal More...
 
bool operator!= (const Size32f &s) const
 checks if two size are not equal More...
 
Size32f operator+ (const Size32f &s) const
 add a size to another size More...
 
Size32f operator- (const Size32f &s) const
 substracts a size from another size More...
 
Size32f operator* (double d) const
 scales the size by a scalar value More...
 
Size32f operator/ (double d) const
 scales the size by a scalar value More...
 
Size32foperator+= (const Size32f &s)
 adds another size inplace More...
 
Size32foperator-= (const Size32f &s)
 substracst another size inplace More...
 
Size32foperator*= (double d)
 scales the size parameters inplace by a scalar More...
 
Size32foperator/= (double d)
 scales the size parameters inplace by a scalar More...
 
float getDim () const
 reutrns width*height More...
 

Public Attributes

float width
 
float height
 

Static Public Attributes

static const Size32f null
 null is w=0, h=0 More...
 

Detailed Description

Size32f class of the ICL (float valued)

Constructor & Destructor Documentation

icl::utils::Size32f::Size32f ( )
inline

default constructor

icl::utils::Size32f::Size32f ( const Size32f s)
inline

deep copy of another Size32f

icl::utils::Size32f::Size32f ( float  width,
float  height 
)
inline

creates a specified size

icl::utils::Size32f::Size32f ( const Size other)
inline

creates a float-size from given int size

Member Function Documentation

float icl::utils::Size32f::getDim ( ) const
inline

reutrns width*height

bool icl::utils::Size32f::isNull ( ) const
inline

checks wether the object instance is null, i.e. all elements are zero

bool icl::utils::Size32f::operator!= ( const Size32f s) const
inline

checks if two size are not equal

Size32f icl::utils::Size32f::operator* ( double  d) const
inline

scales the size by a scalar value

Size32f& icl::utils::Size32f::operator*= ( double  d)
inline

scales the size parameters inplace by a scalar

Size32f icl::utils::Size32f::operator+ ( const Size32f s) const
inline

add a size to another size

Size32f& icl::utils::Size32f::operator+= ( const Size32f s)
inline

adds another size inplace

Size32f icl::utils::Size32f::operator- ( const Size32f s) const
inline

substracts a size from another size

Size32f& icl::utils::Size32f::operator-= ( const Size32f s)
inline

substracst another size inplace

Size32f icl::utils::Size32f::operator/ ( double  d) const
inline

scales the size by a scalar value

Size32f& icl::utils::Size32f::operator/= ( double  d)
inline

scales the size parameters inplace by a scalar

bool icl::utils::Size32f::operator== ( const Size32f s) const
inline

checks if two sizes are equal

Member Data Documentation

float icl::utils::Size32f::height
const Size32f icl::utils::Size32f::null
static

null is w=0, h=0

float icl::utils::Size32f::width

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