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

#include <math.hpp>

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

Public Member Functions

 Size3d () noexcept
 
 Size3d (const size_t &v) noexcept
 
 Size3d (const size_t &w, const size_t &h, const size_t &d) noexcept
 
 Size3d (const Size3d &) noexcept
 
 Size3d (Size3d &&) noexcept
 
Size3doperator= (const Size3d &_other) noexcept
 
Size3doperator= (Size3d &&_other) noexcept
 
 operator Size4d () const noexcept
 
Size3d operator/ (const size_t &s) noexcept
 
Size3doperator/= (const size_t &s) noexcept
 
Size3d operator* (const size_t &s) noexcept
 
Size3doperator*= (const size_t &s) noexcept
 
Size3d operator+ (const Size3d &s) noexcept
 
Size3doperator+= (const Size3d &s) noexcept
 
Size3d operator- (const Size3d &s) noexcept
 
Size3doperator-= (const Size3d &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
 
- Public Member Functions inherited from LiteFX::Math::Vector< size_t, 3 >
 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, 3 >
using scalar_type = size_t
 
using vec_type = Vector< scalar_type, vec_size >
 
- Static Public Attributes inherited from LiteFX::Math::Vector< size_t, 3 >
static constexpr size_t vec_size
 
- Protected Attributes inherited from LiteFX::Math::Vector< size_t, 3 >
scalar_type m_elements [vec_size]
 

Constructor & Destructor Documentation

◆ Size3d() [1/5]

Size3d::Size3d ( )
noexcept

◆ Size3d() [2/5]

Size3d::Size3d ( const size_t &  v)
noexcept

◆ Size3d() [3/5]

Size3d::Size3d ( const size_t &  w,
const size_t &  h,
const size_t &  d 
)
noexcept

◆ Size3d() [4/5]

Size3d::Size3d ( const Size3d _other)
noexcept

◆ Size3d() [5/5]

Size3d::Size3d ( Size3d &&  _other)
noexcept

Member Function Documentation

◆ depth() [1/2]

const size_t & Size3d::depth ( ) const
inlinenoexcept

◆ depth() [2/2]

size_t & Size3d::depth ( )
inlinenoexcept

◆ height() [1/2]

const size_t & Size3d::height ( ) const
inlinenoexcept

◆ height() [2/2]

size_t & Size3d::height ( )
inlinenoexcept

◆ operator Size4d()

Size3d::operator Size4d ( ) const
inlinenoexcept

◆ operator*()

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

◆ operator*=()

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator-=()

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

◆ operator/()

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

◆ operator/=()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ width() [1/2]

const size_t & Size3d::width ( ) const
inlinenoexcept

◆ width() [2/2]

size_t & Size3d::width ( )
inlinenoexcept