#include <rendering.h>
Public Member Functions | |
rect | adjust_ratio (float2 size) const |
float | area () const |
rect | center () const |
rect | center_at (const float2 &new_center) const |
bool | contains (const float2 &p) const |
rect | cut_by (const rect &r) const |
rect | enclose_in (rect in_rect) const |
rect | fit (rect r) const |
rect | grow (int pixels) const |
rect | grow (int dx, int dy) const |
rect | intersection (const rect &other) const |
bool | intersects (const rect &other) const |
rect | lerp (float t, const rect &other) const |
rect | normalize (const rect &normalize_to) const |
operator bool () const | |
bool | operator!= (const rect &other) const |
void | operator= (const rect &other) |
bool | operator== (const rect &other) const |
rect | pan (const float2 &p) const |
rect | scale (float factor) const |
rect | shrink_by (float2 pixels) const |
rect | unnormalize (const rect &unnormalize_to) const |
rect | zoom (float zoom_factor) const |
Public Attributes | |
float | h |
float | w |
float | x |
float | y |
Definition at line 497 of file rendering.h.
Definition at line 606 of file rendering.h.
|
inline |
Definition at line 558 of file rendering.h.
|
inline |
Definition at line 593 of file rendering.h.
Definition at line 641 of file rendering.h.
|
inline |
Definition at line 583 of file rendering.h.
Definition at line 563 of file rendering.h.
Definition at line 671 of file rendering.h.
Definition at line 650 of file rendering.h.
|
inline |
Definition at line 626 of file rendering.h.
|
inline |
Definition at line 631 of file rendering.h.
Definition at line 543 of file rendering.h.
|
inline |
Definition at line 703 of file rendering.h.
Definition at line 598 of file rendering.h.
Definition at line 525 of file rendering.h.
|
inline |
Definition at line 510 of file rendering.h.
|
inline |
Definition at line 520 of file rendering.h.
Definition at line 502 of file rendering.h.
|
inline |
Definition at line 515 of file rendering.h.
Definition at line 588 of file rendering.h.
|
inline |
Definition at line 621 of file rendering.h.
Definition at line 636 of file rendering.h.
Definition at line 533 of file rendering.h.
|
inline |
Definition at line 665 of file rendering.h.
float rs2::rect::h |
Definition at line 500 of file rendering.h.
float rs2::rect::w |
Definition at line 500 of file rendering.h.
float rs2::rect::x |
Definition at line 499 of file rendering.h.
float rs2::rect::y |
Definition at line 499 of file rendering.h.