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

◆ Size32f() [1/4]

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

default constructor

◆ Size32f() [2/4]

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

deep copy of another Size32f

◆ Size32f() [3/4]

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

creates a specified size

◆ Size32f() [4/4]

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

creates a float-size from given int size

Member Function Documentation

◆ getDim()

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

reutrns width*height

◆ isNull()

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

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

◆ operator *()

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

scales the size by a scalar value

◆ operator *=()

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

scales the size parameters inplace by a scalar

◆ operator!=()

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

checks if two size are not equal

◆ operator+()

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

add a size to another size

◆ operator+=()

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

adds another size inplace

◆ operator-()

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

substracts a size from another size

◆ operator-=()

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

substracst another size inplace

◆ operator/()

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

scales the size by a scalar value

◆ operator/=()

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

scales the size parameters inplace by a scalar

◆ operator==()

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

checks if two sizes are equal

Member Data Documentation

◆ height

float icl::utils::Size32f::height

◆ null

const Size32f icl::utils::Size32f::null
static

null is w=0, h=0

◆ width

float icl::utils::Size32f::width

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