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

#include <math.hpp>

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ Size2d() [1/5]

Size2d::Size2d ( )
noexcept

◆ Size2d() [2/5]

Size2d::Size2d ( const size_t &  v)
noexcept

◆ Size2d() [3/5]

Size2d::Size2d ( const size_t &  w,
const size_t &  h 
)
noexcept

◆ Size2d() [4/5]

Size2d::Size2d ( const Size2d _other)
noexcept

◆ Size2d() [5/5]

Size2d::Size2d ( Size2d &&  _other)
noexcept

Member Function Documentation

◆ height() [1/2]

const size_t & Size2d::height ( ) const
inlinenoexcept

◆ height() [2/2]

size_t & Size2d::height ( )
inlinenoexcept

◆ operator Size3d()

Size2d::operator Size3d ( ) const
inlinenoexcept

◆ operator Size4d()

Size2d::operator Size4d ( ) const
inlinenoexcept

◆ operator*()

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

◆ operator*=()

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator-=()

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

◆ operator/()

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

◆ operator/=()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ width() [1/2]

const size_t & Size2d::width ( ) const
inlinenoexcept

◆ width() [2/2]

size_t & Size2d::width ( )
inlinenoexcept