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

2-Dimensional offset structure. More...

#include <CeresEngine/Math/Offset.hpp>

Public Member Functions

constexpr TOffset2 () noexcept=default
 
constexpr TOffset2 (const TOffset2 &) noexcept=default
 
constexpr TOffset2operator= (const TOffset2 &) noexcept=default
 
constexpr TOffset2 (T x, T y) noexcept
 
template<typename TT >
constexpr TOffset2 (TOffset2< TT > other) noexcept
 

Public Attributes

x = 0
 Offset X axis.
 
y = 0
 Offset Y axis.
 

Detailed Description

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

2-Dimensional offset structure.

Remarks
Used for signed integral 2D offsets (for coordinates in window- space, screen-space, and texture-space).

Constructor & Destructor Documentation

◆ TOffset2() [1/4]

template<typename T >
constexpr Math::TOffset2< T >::TOffset2 ( )
constexprdefaultnoexcept

◆ TOffset2() [2/4]

template<typename T >
constexpr Math::TOffset2< T >::TOffset2 ( const TOffset2< T > &  )
constexprdefaultnoexcept

◆ TOffset2() [3/4]

template<typename T >
constexpr Math::TOffset2< T >::TOffset2 ( x,
y 
)
inlineconstexprnoexcept

◆ TOffset2() [4/4]

template<typename T >
template<typename TT >
constexpr Math::TOffset2< T >::TOffset2 ( TOffset2< TT >  other)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ x

template<typename T >
T Math::TOffset2< T >::x = 0

Offset X axis.

◆ y

template<typename T >
T Math::TOffset2< T >::y = 0

Offset Y axis.


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