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

#include <math.hpp>

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

Public Member Functions

 Size4d () noexcept
 
 Size4d (const size_t &v) noexcept
 
 Size4d (const size_t &w, const size_t &h, const size_t &d, const size_t &a) noexcept
 
 Size4d (const Size4d &) noexcept
 
 Size4d (Size4d &&) noexcept
 
Size4doperator= (const Size4d &_other) noexcept
 
Size4doperator= (Size4d &&_other) noexcept
 
Size4d operator/ (const size_t &s) noexcept
 
Size4doperator/= (const size_t &s) noexcept
 
Size4d operator* (const size_t &s) noexcept
 
Size4doperator*= (const size_t &s) noexcept
 
Size4d operator+ (const Size4d &s) noexcept
 
Size4doperator+= (const Size4d &s) noexcept
 
Size4d operator- (const Size4d &s) noexcept
 
Size4doperator-= (const Size4d &s) noexcept
 
const size_t & width () const noexcept
 
size_t & width () noexcept
 
const size_t & height () const noexcept
 
size_t & height () noexcept
 
const size_t & depth () const noexcept
 
size_t & depth () noexcept
 
const size_t & alpha () const noexcept
 
size_t & alpha () 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

◆ Size4d() [1/5]

Size4d::Size4d ( )
noexcept

◆ Size4d() [2/5]

Size4d::Size4d ( const size_t &  v)
noexcept

◆ Size4d() [3/5]

Size4d::Size4d ( const size_t &  w,
const size_t &  h,
const size_t &  d,
const size_t &  a 
)
noexcept

◆ Size4d() [4/5]

Size4d::Size4d ( const Size4d _other)
noexcept

◆ Size4d() [5/5]

Size4d::Size4d ( Size4d &&  _other)
noexcept

Member Function Documentation

◆ alpha() [1/2]

const size_t & Size4d::alpha ( ) const
inlinenoexcept

◆ alpha() [2/2]

size_t & Size4d::alpha ( )
inlinenoexcept

◆ depth() [1/2]

const size_t & Size4d::depth ( ) const
inlinenoexcept

◆ depth() [2/2]

size_t & Size4d::depth ( )
inlinenoexcept

◆ height() [1/2]

const size_t & Size4d::height ( ) const
inlinenoexcept

◆ height() [2/2]

size_t & Size4d::height ( )
inlinenoexcept

◆ operator*()

Size4d Size4d::operator* ( const size_t &  s)
inlinenoexcept

◆ operator*=()

Size4d & Size4d::operator*= ( const size_t &  s)
inlinenoexcept

◆ operator+()

Size4d Size4d::operator+ ( const Size4d s)
inlinenoexcept

◆ operator+=()

Size4d & Size4d::operator+= ( const Size4d s)
inlinenoexcept

◆ operator-()

Size4d Size4d::operator- ( const Size4d s)
inlinenoexcept

◆ operator-=()

Size4d & Size4d::operator-= ( const Size4d s)
inlinenoexcept

◆ operator/()

Size4d Size4d::operator/ ( const size_t &  s)
inlinenoexcept

◆ operator/=()

Size4d & Size4d::operator/= ( const size_t &  s)
inlinenoexcept

◆ operator=() [1/2]

Size4d & Size4d::operator= ( const Size4d _other)
inlinenoexcept

◆ operator=() [2/2]

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

◆ width() [1/2]

const size_t & Size4d::width ( ) const
inlinenoexcept

◆ width() [2/2]

size_t & Size4d::width ( )
inlinenoexcept