Move Vectormath main
C++20 game and graphics mathematics
Loading...
Searching...
No Matches
mv::math::Direction3< T > Class Template Reference

#include <mv/math/semantic/Direction3.hpp>

Public Types

using Component = T
 

Public Member Functions

 Direction3 () noexcept
 
const Vec3< T > & Vector () const noexcept
 
Direction3 operator- () const noexcept
 

Static Public Member Functions

static std::optional< Direction3 > TryFrom (const Vec3< T > &value) noexcept
 
static Direction3 FromOr (const Vec3< T > &value, Direction3 fallback) noexcept
 
static Direction3 AxisX () noexcept
 
static Direction3 AxisY () noexcept
 
static Direction3 AxisZ () noexcept
 
static Direction3 Forward () noexcept
 

Detailed Description

template<typename T>
requires std::is_floating_point_v<T>
class mv::math::Direction3< T >

Definition at line 31 of file Direction3.hpp.

Member Typedef Documentation

◆ Component

template<typename T >
using mv::math::Direction3< T >::Component = T

Definition at line 34 of file Direction3.hpp.

Constructor & Destructor Documentation

◆ Direction3()

template<typename T >
mv::math::Direction3< T >::Direction3 ( )
inlinenoexcept

Definition at line 36 of file Direction3.hpp.

Member Function Documentation

◆ AxisX()

template<typename T >
static Direction3 mv::math::Direction3< T >::AxisX ( )
inlinestaticnoexcept

Definition at line 58 of file Direction3.hpp.

◆ AxisY()

template<typename T >
static Direction3 mv::math::Direction3< T >::AxisY ( )
inlinestaticnoexcept

Definition at line 63 of file Direction3.hpp.

◆ AxisZ()

template<typename T >
static Direction3 mv::math::Direction3< T >::AxisZ ( )
inlinestaticnoexcept

Definition at line 68 of file Direction3.hpp.

◆ Forward()

template<typename T >
static Direction3 mv::math::Direction3< T >::Forward ( )
inlinestaticnoexcept

Definition at line 73 of file Direction3.hpp.

◆ FromOr()

template<typename T >
static Direction3 mv::math::Direction3< T >::FromOr ( const Vec3< T > &  value,
Direction3< T >  fallback 
)
inlinestaticnoexcept

Definition at line 51 of file Direction3.hpp.

◆ operator-()

template<typename T >
Direction3 mv::math::Direction3< T >::operator- ( ) const
inlinenoexcept

Definition at line 83 of file Direction3.hpp.

◆ TryFrom()

template<typename T >
static std::optional< Direction3 > mv::math::Direction3< T >::TryFrom ( const Vec3< T > &  value)
inlinestaticnoexcept

Definition at line 40 of file Direction3.hpp.

◆ Vector()

template<typename T >
const Vec3< T > & mv::math::Direction3< T >::Vector ( ) const
inlinenoexcept

Definition at line 78 of file Direction3.hpp.


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