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

2-Dimensional extent structure. More...

#include <CeresEngine/Math/Extent.hpp>

Public Member Functions

 TExtent2 () noexcept=default
 
 TExtent2 (const TExtent2 &) noexcept=default
 
constexpr TExtent2operator= (const TExtent2 &) noexcept=default
 
 TExtent2 (T width, T height) noexcept
 
template<typename TT >
 TExtent2 (TExtent2< TT > other) noexcept
 

Public Attributes

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

Detailed Description

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

2-Dimensional extent structure.

Remarks
Used for unsigned integral 2D extents (for sizes in window- space, screen-space, and texture-space).

Constructor & Destructor Documentation

◆ TExtent2() [1/4]

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

◆ TExtent2() [2/4]

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

◆ TExtent2() [3/4]

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

◆ TExtent2() [4/4]

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

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ height

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

Extent Y axis, i.e. height.

◆ width

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

Extent X axis, i.e. width.


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