ofRectangle

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

ofRectangle methods

ofRectangle()

ofRectangle::ofRectangle()

ofRectangle(...)

ofRectangle::ofRectangle(float _x, float _y, float _w, float _h)

~ofRectangle()

ofRectangle::~ofRectangle()

ofRectangle(...)

ofRectangle::ofRectangle(ofPoint pos, float w, float h)

ofRectangle(...)

ofRectangle::ofRectangle(ofRectangle const &r)

set(...)

void ofRectangle::set(float px, float py, float w, float h)

set(...)

void ofRectangle::set(ofPoint pos, float w, float h)

set(...)

void ofRectangle::set(ofRectangle const &rect)

setFromCenter(...)

void ofRectangle::setFromCenter(float px, float py, float w, float h)

setFromCenter(...)

void ofRectangle::setFromCenter(ofPoint pos, float w, float h)

getCenter()

ofPoint ofRectangle::getCenter()

inside(...)

bool ofRectangle::inside(ofPoint p)

inside(...)

bool ofRectangle::inside(float px, float py)

operator=(...)

ofRectangle ofRectangle::operator=(const ofRectangle &rect)

operator==(...)

bool ofRectangle::operator==(ofRectangle const &r)

operator!=(...)

bool ofRectangle::operator!=(ofRectangle const &r)

operator+(...)

ofRectangle ofRectangle::operator+(const ofPoint &point)

ofRectangle variables

float x

float ofRectangle::x

x variable contains the x coordinate of our ofRectangle.

float y

float ofRectangle::y

y variable contains the y coordinate of our ofRectangle.

float width

float ofRectangle::width

width variable contains the width of our ofRectangle.

float height

float ofRectangle::height

height variable contains the height of our ofRectangle.