Skip to content

Latest commit

 

History

History
672 lines (371 loc) · 8.29 KB

ofRectangle.markdown

File metadata and controls

672 lines (371 loc) · 8.29 KB

#class ofRectangle

##Description

ofRectangle class contains information about how a rectangle is in openFrameworks. Basically the class contains the position and the size of a rectangle.

##Methods

ofRectangle()

_description: _

ofRectangle(_x, _y, _w, _h)

_description: _

~ofRectangle()

_description: _

ofRectangle(pos, w, h)

_description: _

ofRectangle(&r)

_description: _

###void set(px, py, w, h)

_description: _

###void set(pos, w, h)

_description: _

###void set(&rect)

_description: _

###void setFromCenter(px, py, w, h)

_description: _

###void setFromCenter(pos, w, h)

_description: _

###ofPoint getCenter()

_description: _

###bool inside(p)

_description: _

###bool inside(px, py)

_description: _

###ofRectangle operator=(&rect)

_description: _

###bool operator==(&r)

_description: _

###bool operator!=(&r)

_description: _

###ofRectangle operator+(&point)

_description: _

##Variables

###float x

_description: _

x variable contains the x coordinate of our ofRectangle.

###float y

_description: _

y variable contains the y coordinate of our ofRectangle.

###float width

_description: _

width variable contains the width of our ofRectangle.

###float height

_description: _

height variable contains the height of our ofRectangle.