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

#include <math.hpp>

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

Public Member Functions

 RectI () noexcept
 
 RectI (const Vector< Int32, 2 > &pos, const Int32 &w, const Int32 &h) noexcept
 
 RectI (const Int32 &x, const Int32 &y, const Int32 &w, const Int32 &h) noexcept
 
 RectI (const RectI &) noexcept
 
 RectI (RectI &&) noexcept
 
RectIoperator= (const RectI &_other) noexcept
 
RectIoperator= (RectI &&_other) noexcept
 
Vector< Int32, 2 > position () const noexcept
 
Size2d extent () const noexcept
 
const Int32width () const noexcept
 
Int32width () noexcept
 
const Int32height () const noexcept
 
Int32height () noexcept
 
- Public Member Functions inherited from LiteFX::Math::Vector< Int32, 4 >
 Vector () noexcept=default
 
 Vector (const Int32 &val) noexcept
 
 Vector (const vec_type &_other) noexcept
 
 Vector (vec_type &&_other) noexcept
 
Vector< Int32, DIM > & operator= (const Vector< Int32, DIM > &_other) noexcept
 
Vector< Int32, DIM > & operator= (Vector< Int32, DIM > &&_other) noexcept
 
const Int32operator[] (const unsigned int &i) const noexcept
 
Int32operator[] (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< Int32, 4 >
using scalar_type = Int32
 
using vec_type = Vector< scalar_type, vec_size >
 
- Static Public Attributes inherited from LiteFX::Math::Vector< Int32, 4 >
static constexpr size_t vec_size
 
- Protected Attributes inherited from LiteFX::Math::Vector< Int32, 4 >
scalar_type m_elements [vec_size]
 

Constructor & Destructor Documentation

◆ RectI() [1/5]

RectI::RectI ( )
noexcept

◆ RectI() [2/5]

RectI::RectI ( const Vector< Int32, 2 > &  pos,
const Int32 w,
const Int32 h 
)
noexcept

◆ RectI() [3/5]

RectI::RectI ( const Int32 x,
const Int32 y,
const Int32 w,
const Int32 h 
)
noexcept

◆ RectI() [4/5]

RectI::RectI ( const RectI _other)
noexcept

◆ RectI() [5/5]

RectI::RectI ( RectI &&  _other)
noexcept

Member Function Documentation

◆ extent()

Size2d RectI::extent ( ) const
inlinenoexcept

◆ height() [1/2]

const Int32 & RectI::height ( ) const
inlinenoexcept

◆ height() [2/2]

Int32 & RectI::height ( )
inlinenoexcept

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ position()

Vector< Int32, 2 > RectI::position ( ) const
inlinenoexcept

◆ width() [1/2]

const Int32 & RectI::width ( ) const
inlinenoexcept

◆ width() [2/2]

Int32 & RectI::width ( )
inlinenoexcept