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

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

Public Types

using Component = T
 

Public Member Functions

 Segment3 () noexcept=default
 
 Segment3 (const Point3< T > &start, const Point3< T > &end) noexcept
 
const Point3< T > & Start () const noexcept
 
const Point3< T > & End () const noexcept
 
Vec3< T > Displacement () const noexcept
 
T LengthSquared () const noexcept
 
T Length () const noexcept
 
bool IsDegenerate () const noexcept
 
std::optional< Direction3< T > > TryDirection () const noexcept
 
Point3< T > PointAtFraction (T fraction) const noexcept
 
bool IsFinite () const noexcept
 

Detailed Description

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

Definition at line 16 of file Segment3.hpp.

Member Typedef Documentation

◆ Component

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

Definition at line 19 of file Segment3.hpp.

Constructor & Destructor Documentation

◆ Segment3() [1/2]

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

◆ Segment3() [2/2]

template<typename T >
mv::math::Segment3< T >::Segment3 ( const Point3< T > &  start,
const Point3< T > &  end 
)
inlinenoexcept

Definition at line 23 of file Segment3.hpp.

Member Function Documentation

◆ Displacement()

template<typename T >
Vec3< T > mv::math::Segment3< T >::Displacement ( ) const
inlinenoexcept

Definition at line 38 of file Segment3.hpp.

◆ End()

template<typename T >
const Point3< T > & mv::math::Segment3< T >::End ( ) const
inlinenoexcept

Definition at line 33 of file Segment3.hpp.

◆ IsDegenerate()

template<typename T >
bool mv::math::Segment3< T >::IsDegenerate ( ) const
inlinenoexcept

Definition at line 53 of file Segment3.hpp.

◆ IsFinite()

template<typename T >
bool mv::math::Segment3< T >::IsFinite ( ) const
inlinenoexcept

Definition at line 70 of file Segment3.hpp.

◆ Length()

template<typename T >
T mv::math::Segment3< T >::Length ( ) const
inlinenoexcept

Definition at line 48 of file Segment3.hpp.

◆ LengthSquared()

template<typename T >
T mv::math::Segment3< T >::LengthSquared ( ) const
inlinenoexcept

Definition at line 43 of file Segment3.hpp.

◆ PointAtFraction()

template<typename T >
Point3< T > mv::math::Segment3< T >::PointAtFraction ( T  fraction) const
inlinenoexcept

Definition at line 65 of file Segment3.hpp.

◆ Start()

template<typename T >
const Point3< T > & mv::math::Segment3< T >::Start ( ) const
inlinenoexcept

Definition at line 28 of file Segment3.hpp.

◆ TryDirection()

template<typename T >
std::optional< Direction3< T > > mv::math::Segment3< T >::TryDirection ( ) const
inlinenoexcept

Definition at line 58 of file Segment3.hpp.


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