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

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

Public Types

using Component = T
 

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 37 of file Normal3.hpp.

Member Typedef Documentation

◆ Component

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

Definition at line 40 of file Normal3.hpp.

Constructor & Destructor Documentation

◆ Normal3()

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

Definition at line 42 of file Normal3.hpp.

Member Function Documentation

◆ AxisX()

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

Definition at line 70 of file Normal3.hpp.

◆ AxisY()

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

Definition at line 75 of file Normal3.hpp.

◆ AxisZ()

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

Definition at line 80 of file Normal3.hpp.

◆ FromDirection()

template<typename T >
static Normal3 mv::math::Normal3< T >::FromDirection ( const Direction3< T > &  direction)
inlinestaticnoexcept

Definition at line 64 of file Normal3.hpp.

◆ FromOr()

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

Definition at line 57 of file Normal3.hpp.

◆ operator-()

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

Definition at line 96 of file Normal3.hpp.

◆ ToDirection()

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

Definition at line 90 of file Normal3.hpp.

◆ TryFrom()

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

Definition at line 46 of file Normal3.hpp.

◆ Vector()

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

Definition at line 85 of file Normal3.hpp.


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