GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::Direction< N > Struct Template Reference

Normalized unit vector. More...

#include <GREM/physics/quantities.hpp>

Inheritance diagram for grem::physics::Direction< N >:

Public Member Functions

GREM_ALWAYS_INLINE constexpr Direction () noexcept
GREM_ALWAYS_INLINE constexpr bool operator== (const Direction &other) const noexcept
template<typename OtherUnitT>
requires (UNIT == OtherUnitT{})
GREM_ALWAYS_INLINE constexpr bool operator== (const Quantity< 2, OtherUnitT > &other) const noexcept
GREM_ALWAYS_INLINE constexpr bool operator== (Zero other) const noexcept
GREM_ALWAYS_INLINE constexpr Direction GREM_VECTORCALL operator- () const

Static Public Member Functions

static GREM_ALWAYS_INLINE constexpr Direction reinterpret (auto other)

Detailed Description

template<size_t N>
struct grem::physics::Direction< N >

Normalized unit vector.

Unitless.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

Constructor & Destructor Documentation

◆ Direction()

template<size_t N>
GREM_ALWAYS_INLINE constexpr grem::physics::Direction< N >::Direction ( )
inlineconstexprnoexcept

Member Function Documentation

◆ reinterpret()

template<size_t N>
GREM_ALWAYS_INLINE constexpr Direction grem::physics::Direction< N >::reinterpret ( auto other)
inlinestaticnodiscardconstexpr

◆ operator==() [1/3]

template<size_t N>
GREM_ALWAYS_INLINE constexpr bool grem::physics::Direction< N >::operator== ( const Direction< N > & other) const
inlinenodiscardconstexprnoexcept

◆ operator==() [2/3]

template<size_t N>
template<typename OtherUnitT>
requires (UNIT == OtherUnitT{})
GREM_ALWAYS_INLINE constexpr bool grem::physics::Direction< N >::operator== ( const Quantity< 2, OtherUnitT > & other) const
inlinenodiscardconstexprnoexcept

◆ operator==() [3/3]

template<size_t N>
GREM_ALWAYS_INLINE constexpr bool grem::physics::Direction< N >::operator== ( Zero other) const
inlinenodiscardconstexprnoexcept

◆ operator-()

template<size_t N>
GREM_ALWAYS_INLINE constexpr Direction GREM_VECTORCALL grem::physics::Direction< N >::operator- ( ) const
inlinenodiscardconstexpr

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