Public Member Functions | Public Attributes | List of all members
rs2::rect Struct Reference

#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
 

Detailed Description

Definition at line 497 of file rendering.h.

Member Function Documentation

rect rs2::rect::adjust_ratio ( float2  size) const
inline

Definition at line 606 of file rendering.h.

float rs2::rect::area ( ) const
inline

Definition at line 558 of file rendering.h.

rect rs2::rect::center ( ) const
inline

Definition at line 593 of file rendering.h.

rect rs2::rect::center_at ( const float2 new_center) const
inline

Definition at line 641 of file rendering.h.

bool rs2::rect::contains ( const float2 p) const
inline

Definition at line 583 of file rendering.h.

rect rs2::rect::cut_by ( const rect r) const
inline

Definition at line 563 of file rendering.h.

rect rs2::rect::enclose_in ( rect  in_rect) const
inline

Definition at line 671 of file rendering.h.

rect rs2::rect::fit ( rect  r) const
inline

Definition at line 650 of file rendering.h.

rect rs2::rect::grow ( int  pixels) const
inline

Definition at line 626 of file rendering.h.

rect rs2::rect::grow ( int  dx,
int  dy 
) const
inline

Definition at line 631 of file rendering.h.

rect rs2::rect::intersection ( const rect other) const
inline

Definition at line 543 of file rendering.h.

bool rs2::rect::intersects ( const rect other) const
inline

Definition at line 703 of file rendering.h.

rect rs2::rect::lerp ( float  t,
const rect other 
) const
inline

Definition at line 598 of file rendering.h.

rect rs2::rect::normalize ( const rect normalize_to) const
inline

Definition at line 525 of file rendering.h.

rs2::rect::operator bool ( ) const
inline

Definition at line 510 of file rendering.h.

bool rs2::rect::operator!= ( const rect other) const
inline

Definition at line 520 of file rendering.h.

void rs2::rect::operator= ( const rect other)
inline

Definition at line 502 of file rendering.h.

bool rs2::rect::operator== ( const rect other) const
inline

Definition at line 515 of file rendering.h.

rect rs2::rect::pan ( const float2 p) const
inline

Definition at line 588 of file rendering.h.

rect rs2::rect::scale ( float  factor) const
inline

Definition at line 621 of file rendering.h.

rect rs2::rect::shrink_by ( float2  pixels) const
inline

Definition at line 636 of file rendering.h.

rect rs2::rect::unnormalize ( const rect unnormalize_to) const
inline

Definition at line 533 of file rendering.h.

rect rs2::rect::zoom ( float  zoom_factor) const
inline

Definition at line 665 of file rendering.h.

Member Data Documentation

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.


The documentation for this struct was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41