Image Component Library (ICL)
|
Size32f class of the ICL (float valued) More...
#include <Size32f.h>
Public Member Functions | |
Size32f () | |
default constructor | |
Size32f (const Size32f &s) | |
deep copy of another Size32f | |
Size32f (float width, float height) | |
creates a specified size | |
Size32f (const Size &other) | |
creates a float-size from given int size | |
bool | isNull () const |
checks wether the object instance is null, i.e. all elements are zero | |
bool | operator== (const Size32f &s) const |
checks if two sizes are equal | |
bool | operator!= (const Size32f &s) const |
checks if two size are not equal | |
Size32f | operator+ (const Size32f &s) const |
add a size to another size | |
Size32f | operator- (const Size32f &s) const |
substracts a size from another size | |
Size32f | operator* (double d) const |
scales the size by a scalar value | |
Size32f | operator/ (double d) const |
scales the size by a scalar value | |
Size32f & | operator+= (const Size32f &s) |
adds another size inplace | |
Size32f & | operator-= (const Size32f &s) |
substracst another size inplace | |
Size32f & | operator*= (double d) |
scales the size parameters inplace by a scalar | |
Size32f & | operator/= (double d) |
scales the size parameters inplace by a scalar | |
float | getDim () const |
reutrns width*height | |
Public Attributes | |
float | width |
float | height |
Static Public Attributes | |
static const Size32f | null |
null is w=0, h=0 |
Size32f class of the ICL (float valued)
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
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
add a size to another size
substracts a size from another size
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
const Size32f icl::utils::Size32f::null [static] |
null is w=0, h=0