Jameo Core Library
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
jm::Size Struct Reference

Defines a size. More...

Public Member Functions

 Size ()
 Constructor creates size <0,0>
 
 Size (double width, double height)
 Constructor creates size <width,height>
 
 Size (const Point &pt)
 
double width () const
 Returns the width.
 
double height () const
 Returns the height.
 
double & rWidth ()
 Returns reference to the width.
 
double & rHeight ()
 Returns reference to the height.
 
void setWidth (double width)
 
void setHeight (double height)
 
Size cWiseMin (const Size &other) const
 Returns the component-wise minimum of this size and the other size.
 
Size cWiseMax (const Size &other) const
 Returns the component-wise maximum of this size and the other size.
 
bool operator== (const Size &other) const
 
bool operator!= (const Size &other) const
 

Friends

DllExport friend Size operator- (const Size &v1, const Size &v2)
 
DllExport friend Size operator* (const double &d, const Size &v)
 

Detailed Description

Defines a size.

Constructor & Destructor Documentation

◆ Size() [1/3]

jm::Size::Size ( )

Constructor creates size <0,0>

◆ Size() [2/3]

jm::Size::Size ( double  width,
double  height 
)

Constructor creates size <width,height>

◆ Size() [3/3]

jm::Size::Size ( const Point pt)
explicit

Member Function Documentation

◆ cWiseMax()

Size jm::Size::cWiseMax ( const Size other) const

Returns the component-wise maximum of this size and the other size.

◆ cWiseMin()

Size jm::Size::cWiseMin ( const Size other) const

Returns the component-wise minimum of this size and the other size.

◆ height()

double jm::Size::height ( ) const

Returns the height.

◆ operator!=()

bool jm::Size::operator!= ( const Size other) const

◆ operator==()

bool jm::Size::operator== ( const Size other) const

◆ rHeight()

double & jm::Size::rHeight ( )

Returns reference to the height.

◆ rWidth()

double & jm::Size::rWidth ( )

Returns reference to the width.

◆ setHeight()

void jm::Size::setHeight ( double  height)

◆ setWidth()

void jm::Size::setWidth ( double  width)

◆ width()

double jm::Size::width ( ) const

Returns the width.

Friends And Related Symbol Documentation

◆ operator*

DllExport friend Size operator* ( const double &  d,
const Size v 
)
friend

◆ operator-

DllExport friend Size operator- ( const Size v1,
const Size v2 
)
friend