LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Math::Rect Class Reference

#include <math.hpp>

Inherits LiteFX::Math::Vector< size_t, 4 >.

Public Member Functions

 Rect () noexcept
 
 Rect (const Vector< size_t, 2 > &pos, const size_t &w, const size_t &h) noexcept
 
 Rect (const size_t &x, const size_t &y, const size_t &w, const size_t &h) noexcept
 
 Rect (const Rect &) noexcept
 
 Rect (Rect &&) noexcept
 
Rectoperator= (const Rect &_other) noexcept
 
Rectoperator= (Rect &&_other) noexcept
 
Vector< size_t, 2 > position () const noexcept
 
Size2d extent () const noexcept
 
const size_t & width () const noexcept
 
size_t & width () noexcept
 
const size_t & height () const noexcept
 
size_t & height () noexcept
 
- Public Member Functions inherited from LiteFX::Math::Vector< size_t, 4 >
 Vector () noexcept=default
 
 Vector (const size_t &val) noexcept
 
 Vector (const vec_type &_other) noexcept
 
 Vector (vec_type &&_other) noexcept
 
Vector< size_t, DIM > & operator= (const Vector< size_t, DIM > &_other) noexcept
 
Vector< size_t, DIM > & operator= (Vector< size_t, DIM > &&_other) noexcept
 
const size_t & operator[] (const unsigned int &i) const noexcept
 
size_t & operator[] (const unsigned int &i) noexcept
 
const scalar_typeelements () const noexcept
 
int size () const noexcept
 
const scalar_typex () const noexcept
 
scalar_typex () noexcept
 
const scalar_typey () const noexcept
 
scalar_typey () noexcept
 
const scalar_typez () const noexcept
 
scalar_typez () noexcept
 
const scalar_typew () const noexcept
 
scalar_typew () noexcept
 

Additional Inherited Members

- Public Types inherited from LiteFX::Math::Vector< size_t, 4 >
using scalar_type = size_t
 
using vec_type = Vector< scalar_type, vec_size >
 
- Static Public Attributes inherited from LiteFX::Math::Vector< size_t, 4 >
static constexpr size_t vec_size
 
- Protected Attributes inherited from LiteFX::Math::Vector< size_t, 4 >
scalar_type m_elements [vec_size]
 

Constructor & Destructor Documentation

◆ Rect() [1/5]

Rect::Rect ( )
noexcept

◆ Rect() [2/5]

Rect::Rect ( const Vector< size_t, 2 > &  pos,
const size_t &  w,
const size_t &  h 
)
noexcept

◆ Rect() [3/5]

Rect::Rect ( const size_t &  x,
const size_t &  y,
const size_t &  w,
const size_t &  h 
)
noexcept

◆ Rect() [4/5]

Rect::Rect ( const Rect _other)
noexcept

◆ Rect() [5/5]

Rect::Rect ( Rect &&  _other)
noexcept

Member Function Documentation

◆ extent()

Size2d Rect::extent ( ) const
inlinenoexcept

◆ height() [1/2]

const size_t & Rect::height ( ) const
inlinenoexcept

◆ height() [2/2]

size_t & Rect::height ( )
inlinenoexcept

◆ operator=() [1/2]

Rect & LiteFX::Math::Rect::operator= ( const Rect _other)
inlinenoexcept

◆ operator=() [2/2]

Rect & Rect::operator= ( Rect &&  _other)
inlinenoexcept

◆ position()

Vector< size_t, 2 > Rect::position ( ) const
inlinenoexcept

◆ width() [1/2]

const size_t & Rect::width ( ) const
inlinenoexcept

◆ width() [2/2]

size_t & Rect::width ( )
inlinenoexcept