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

#include <math.hpp>

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ RectF() [1/5]

RectF::RectF ( )
noexcept

◆ RectF() [2/5]

RectF::RectF ( const Vector< Float, 2 > &  pos,
const Float w,
const Float h 
)
noexcept

◆ RectF() [3/5]

RectF::RectF ( const Float x,
const Float y,
const Float w,
const Float h 
)
noexcept

◆ RectF() [4/5]

RectF::RectF ( const RectF _other)
noexcept

◆ RectF() [5/5]

RectF::RectF ( RectF &&  _other)
noexcept

Member Function Documentation

◆ extent()

Size2d RectF::extent ( ) const
inlinenoexcept

◆ height() [1/2]

const Float & RectF::height ( ) const
inlinenoexcept

◆ height() [2/2]

Float & RectF::height ( )
inlinenoexcept

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ position()

Vector< Float, 2 > RectF::position ( ) const
inlinenoexcept

◆ width() [1/2]

const Float & RectF::width ( ) const
inlinenoexcept

◆ width() [2/2]

Float & RectF::width ( )
inlinenoexcept