CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Math::TExtent3< T > Struct Template Referencefinal

3-Dimensional extent structure. More...

#include <CeresEngine/Math/Extent.hpp>

Public Member Functions

 TExtent3 () noexcept=default
 
 TExtent3 (const TExtent3 &) noexcept=default
 
constexpr TExtent3operator= (const TExtent3 &) noexcept=default
 
 TExtent3 (T width, T height, T depth) noexcept
 
 TExtent3 (const TExtent2< T > &other, T depth=T(1)) noexcept
 
template<typename TT >
 TExtent3 (TExtent3< TT > other) noexcept
 
template<typename TT >
requires (!std::is_same_v<T, TT>)
 TExtent3 (TExtent2< TT > other, T depth) noexcept
 

Public Attributes

width = 0
 Extent X axis, i.e. width.
 
height = 0
 Extent Y axis, i.e. height.
 
depth = 0
 Extent Z axis, i.e. depth.
 

Detailed Description

template<typename T>
struct Math::TExtent3< T >

3-Dimensional extent structure.

Remarks
Used for unsigned integral 3D extents (for sizes in texture- space).

Constructor & Destructor Documentation

◆ TExtent3() [1/6]

template<typename T >
Math::TExtent3< T >::TExtent3 ( )
defaultnoexcept

◆ TExtent3() [2/6]

template<typename T >
Math::TExtent3< T >::TExtent3 ( const TExtent3< T > &  )
defaultnoexcept

◆ TExtent3() [3/6]

template<typename T >
Math::TExtent3< T >::TExtent3 ( width,
height,
depth 
)
inlinenoexcept

◆ TExtent3() [4/6]

template<typename T >
Math::TExtent3< T >::TExtent3 ( const TExtent2< T > &  other,
depth = T(1) 
)
inlinenoexcept

◆ TExtent3() [5/6]

template<typename T >
template<typename TT >
Math::TExtent3< T >::TExtent3 ( TExtent3< TT >  other)
inlineexplicitnoexcept

◆ TExtent3() [6/6]

template<typename T >
template<typename TT >
requires (!std::is_same_v<T, TT>)
Math::TExtent3< T >::TExtent3 ( TExtent2< TT >  other,
depth 
)
inlineexplicitnoexcept

Member Function Documentation

◆ operator=()

template<typename T >
constexpr TExtent3 & Math::TExtent3< T >::operator= ( const TExtent3< T > &  )
constexprdefaultnoexcept

Member Data Documentation

◆ depth

template<typename T >
T Math::TExtent3< T >::depth = 0

Extent Z axis, i.e. depth.

◆ height

template<typename T >
T Math::TExtent3< T >::height = 0

Extent Y axis, i.e. height.

◆ width

template<typename T >
T Math::TExtent3< T >::width = 0

Extent X axis, i.e. width.


The documentation for this struct was generated from the following file: