Skip to content

Class Rectangle

template <typename T>

ClassList > Rectangle

Public Types

Type Name
typedef Rectangle< T > Self

Public Functions

Type Name
void AddBorder (const T & border_size)
T Area () const
bool Contains (const T & x, const T & y) const
bool Contains (const Point2< T > & pt) const
bool Contains (const Vector2< T > & pt) const
bool Contains (const Rectangle & other) const
void Expand (const T & x, const T & y)
void Expand (const Point2< T > & p)
void Expand (const Vector2< T > & p)
void Expand (const Rectangle & other)
T Height () const
Rectangle Intersect (const Rectangle & other) const
bool Intersects (const Rectangle & other) const
bool IsEmpty () const
Rectangle ()
Rectangle (const T & x, const T & y, const T & width, const T & height)
Rectangle (const Point2< T > & p0, const Point2< T > & p1)
Rectangle (const Vector2< T > & p0, const Vector2< T > & p1)
void Set (const Point2< T > & p0, const Point2< T > & p1)
void Set (const Vector2< T > & p0, const Vector2< T > & p1)
void Set (const T & x, const T & y, const T & width, const T & height)
void SetEmpty ()
void SetEmpty ()
void SetEmpty ()
void Translate (const Vector2< T > & v)
Rectangle Union (const Rectangle & other) const
T Width () const
const Point2< T > & max_xy () const
const Point2< T > & min_xy () const
bool operator!= (const Rectangle & other) const
bool operator== (const Rectangle & other) const
void set_max_xy (const Point2< T > & p)
void set_min_xy (const Point2< T > & p)
void set_xmax (const T & x)
void set_xmin (const T & x)
void set_ymax (const T & y)
void set_ymin (const T & y)
const T & xmax () const
const T & xmin () const
const T & ymax () const
const T & ymin () const

Public Types Documentation

typedef Self

typedef Rectangle<T> Rectangle< T >::Self;

Public Functions Documentation

function AddBorder

void Rectangle::AddBorder (
    const T & border_size
) 

function Area

inline T Rectangle::Area () const

function Contains [1/4]

bool Rectangle::Contains (
    const T & x,
    const T & y
) const

function Contains [2/4]

bool Rectangle::Contains (
    const Point2< T > & pt
) const

function Contains [3/4]

bool Rectangle::Contains (
    const Vector2< T > & pt
) const

function Contains [4/4]

bool Rectangle::Contains (
    const Rectangle & other
) const

function Expand [1/4]

void Rectangle::Expand (
    const T & x,
    const T & y
) 

function Expand [2/4]

void Rectangle::Expand (
    const Point2< T > & p
) 

function Expand [3/4]

void Rectangle::Expand (
    const Vector2< T > & p
) 

function Expand [4/4]

void Rectangle::Expand (
    const Rectangle & other
) 

function Height

inline T Rectangle::Height () const

function Intersect

Rectangle Rectangle::Intersect (
    const Rectangle & other
) const

function Intersects

bool Rectangle::Intersects (
    const Rectangle & other
) const

function IsEmpty

inline bool Rectangle::IsEmpty () const

function Rectangle [1/4]

inline Rectangle::Rectangle () 

function Rectangle [2/4]

Rectangle::Rectangle (
    const T & x,
    const T & y,
    const T & width,
    const T & height
) 

function Rectangle [3/4]

Rectangle::Rectangle (
    const Point2< T > & p0,
    const Point2< T > & p1
) 

function Rectangle [4/4]

Rectangle::Rectangle (
    const Vector2< T > & p0,
    const Vector2< T > & p1
) 

function Set [1/3]

void Rectangle::Set (
    const Point2< T > & p0,
    const Point2< T > & p1
) 

function Set [2/3]

void Rectangle::Set (
    const Vector2< T > & p0,
    const Vector2< T > & p1
) 

function Set [3/3]

void Rectangle::Set (
    const T & x,
    const T & y,
    const T & width,
    const T & height
) 

function SetEmpty [1/3]

void Rectangle::SetEmpty () 

function SetEmpty [2/3]

inline void Rectangle::SetEmpty () 

function SetEmpty [3/3]

inline void Rectangle::SetEmpty () 

function Translate

void Rectangle::Translate (
    const Vector2< T > & v
) 

function Union

Rectangle Rectangle::Union (
    const Rectangle & other
) const

function Width

inline T Rectangle::Width () const

function max_xy

inline const Point2< T > & Rectangle::max_xy () const

function min_xy

inline const Point2< T > & Rectangle::min_xy () const

function operator!=

bool Rectangle::operator!= (
    const Rectangle & other
) const

function operator==

bool Rectangle::operator== (
    const Rectangle & other
) const

function set_max_xy

inline void Rectangle::set_max_xy (
    const Point2< T > & p
) 

function set_min_xy

inline void Rectangle::set_min_xy (
    const Point2< T > & p
) 

function set_xmax

inline void Rectangle::set_xmax (
    const T & x
) 

function set_xmin

inline void Rectangle::set_xmin (
    const T & x
) 

function set_ymax

inline void Rectangle::set_ymax (
    const T & y
) 

function set_ymin

inline void Rectangle::set_ymin (
    const T & y
) 

function xmax

inline const T & Rectangle::xmax () const

function xmin

inline const T & Rectangle::xmin () const

function ymax

inline const T & Rectangle::ymax () const

function ymin

inline const T & Rectangle::ymin () const

Friends Documentation

friend operator<<

std::ostream & Rectangle::operator<< (
    std::ostream & out,
    const Rectangle & r
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/framework/deps/rectangle.h