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

#include <mv/math/geometry/Ray3.hpp>

Public Types

using Component = T
 

Public Member Functions

 Ray3 () noexcept=default
 
const Point3< T > & Origin () const noexcept
 
const Direction3< T > & Direction () const noexcept
 
Point3< T > PointAt (T distance) const noexcept
 

Static Public Member Functions

static std::optional< Ray3 > TryFromOriginDirection (const Point3< T > &origin, const Direction3< T > &direction) noexcept
 

Detailed Description

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

Definition at line 16 of file Ray3.hpp.

Member Typedef Documentation

◆ Component

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

Definition at line 19 of file Ray3.hpp.

Constructor & Destructor Documentation

◆ Ray3()

template<typename T >
mv::math::Ray3< T >::Ray3 ( )
defaultnoexcept

Member Function Documentation

◆ Direction()

template<typename T >
const Direction3< T > & mv::math::Ray3< T >::Direction ( ) const
inlinenoexcept

Definition at line 38 of file Ray3.hpp.

◆ Origin()

template<typename T >
const Point3< T > & mv::math::Ray3< T >::Origin ( ) const
inlinenoexcept

Definition at line 33 of file Ray3.hpp.

◆ PointAt()

template<typename T >
Point3< T > mv::math::Ray3< T >::PointAt ( T  distance) const
inlinenoexcept

Definition at line 45 of file Ray3.hpp.

◆ TryFromOriginDirection()

template<typename T >
static std::optional< Ray3 > mv::math::Ray3< T >::TryFromOriginDirection ( const Point3< T > &  origin,
const Direction3< T > &  direction 
)
inlinestaticnoexcept

Definition at line 23 of file Ray3.hpp.


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