LiteFX 0.5.1.2025
Computer Graphics Engine
Loading...
Searching...
No Matches
LiteFX::Math::Size3d Class Reference

#include <math.hpp>

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

Public Member Functions

 Size3d () noexcept
 Size3d (size_t v) noexcept
 Size3d (size_t w, size_t h, size_t d) noexcept
 Size3d (const Size3d &)
 Size3d (Size3d &&) noexcept
 ~Size3d () noexcept=default
Size3doperator= (const Size3d &_other)
Size3doperator= (Size3d &&_other) noexcept
 operator Size4d () const noexcept
Size3d operator/ (size_t s) noexcept
Size3doperator/= (size_t s) noexcept
Size3d operator* (size_t s) noexcept
Size3doperator*= (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
size_t width () const noexcept
size_t & width () noexcept
size_t height () const noexcept
size_t & height () noexcept
size_t depth () const noexcept
size_t & depth () noexcept
Public Member Functions inherited from LiteFX::Math::Vector< size_t, 3 >
constexpr Vector () noexcept=default
 Initializes an empty vector.
constexpr Vectoroperator= (Vector &&_other) noexcept=default
 Moves the elements of the other vector to the current vector.
constexpr ~Vector () noexcept=default
 Destroys the vector.
constexpr size_t operator[] (unsigned int i) const noexcept
 Returns a value from the vector, indexed by the parameter i .
constexpr auto begin () noexcept
 Returns an interator for that addresses the begin of the vector elements.
constexpr auto end () noexcept
 Returns an interator for that addresses the end of the vector elements.
constexpr auto cbegin () const noexcept
 Returns a constant interator for that addresses the begin of the vector elements.
constexpr auto cend () const noexcept
 Returns a constant interator for that addresses the end of the vector elements.
constexpr const scalar_typeelements () const noexcept
 Returns a pointer to the elements of the vector.
constexpr operator std::array< size_t, DIM > () const noexcept
 Converts the vector to an instance of std::array.
constexpr operator std::vector< size_t > () const
 Converts the vector into an instance of type std::vector.
constexpr int size () const noexcept
 Returns the number of dimensions of the vector.
constexpr scalar_type x () const noexcept
 Returns the value of the x component of the vector.
constexpr scalar_type y () const noexcept
 Returns the value of the y component of the vector.
constexpr scalar_type z () const noexcept
 Returns the value of the z component of the vector.
constexpr scalar_type w () const noexcept
 Returns the value of the w component of the vector.

Additional Inherited Members

Public Types inherited from LiteFX::Math::Vector< size_t, 3 >
using scalar_type
 The type of the vector elements.
using vec_type
 The type of the vector itself.
Static Public Attributes inherited from LiteFX::Math::Vector< size_t, 3 >
static constexpr size_t vec_size
 Stores the size of the vector.
Protected Types inherited from LiteFX::Math::Vector< size_t, 3 >
using array_type
Protected Attributes inherited from LiteFX::Math::Vector< size_t, 3 >
array_type m_elements

Constructor & Destructor Documentation

◆ Size3d() [1/5]

Size3d::Size3d ( )
noexcept

◆ Size3d() [2/5]

Size3d::Size3d ( size_t v)
noexcept

◆ Size3d() [3/5]

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

◆ Size3d() [4/5]

Size3d::Size3d ( const Size3d & _other)

◆ Size3d() [5/5]

Size3d::Size3d ( Size3d && _other)
noexcept

◆ ~Size3d()

LiteFX::Math::Size3d::~Size3d ( )
defaultnoexcept

Member Function Documentation

◆ depth() [1/2]

size_t Size3d::depth ( ) const
noexcept

◆ depth() [2/2]

size_t & Size3d::depth ( )
noexcept

◆ height() [1/2]

size_t Size3d::height ( ) const
noexcept

◆ height() [2/2]

size_t & Size3d::height ( )
noexcept

◆ operator Size4d()

Size3d::operator Size4d ( ) const
noexcept

◆ operator*()

Size3d Size3d::operator* ( size_t s)
noexcept

◆ operator*=()

Size3d & Size3d::operator*= ( size_t s)
noexcept

◆ operator+()

Size3d Size3d::operator+ ( const Size3d & s)
noexcept

◆ operator+=()

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

◆ operator-()

Size3d Size3d::operator- ( const Size3d & s)
noexcept

◆ operator-=()

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

◆ operator/()

Size3d Size3d::operator/ ( size_t s)
noexcept

◆ operator/=()

Size3d & Size3d::operator/= ( size_t s)
noexcept

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ width() [1/2]

size_t Size3d::width ( ) const
noexcept

◆ width() [2/2]

size_t & Size3d::width ( )
noexcept