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

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

Public Types

using Component = T
 

Public Member Functions

 Capsule3 () noexcept=default
 
Point3< T > Start () const noexcept
 
const Point3< T > & End () const noexcept
 
Segment3< T > CenterLine () const noexcept
 
T Radius () const noexcept
 
bool IsDegenerate () const noexcept
 
bool IsFinite () const noexcept
 

Static Public Member Functions

static std::optional< Capsule3 > TryFromSegmentRadius (const Segment3< T > &centerLine, T radius) noexcept
 
static std::optional< Capsule3 > TryFromEndpointsRadius (const Point3< T > &start, const Point3< T > &end, T radius) noexcept
 

Detailed Description

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

Definition at line 17 of file Capsule3.hpp.

Member Typedef Documentation

◆ Component

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

Definition at line 20 of file Capsule3.hpp.

Constructor & Destructor Documentation

◆ Capsule3()

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

Member Function Documentation

◆ CenterLine()

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

Definition at line 52 of file Capsule3.hpp.

◆ End()

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

Definition at line 47 of file Capsule3.hpp.

◆ IsDegenerate()

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

Definition at line 62 of file Capsule3.hpp.

◆ IsFinite()

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

Definition at line 67 of file Capsule3.hpp.

◆ Radius()

template<typename T >
T mv::math::Capsule3< T >::Radius ( ) const
inlinenoexcept

Definition at line 57 of file Capsule3.hpp.

◆ Start()

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

Definition at line 41 of file Capsule3.hpp.

◆ TryFromEndpointsRadius()

template<typename T >
static std::optional< Capsule3 > mv::math::Capsule3< T >::TryFromEndpointsRadius ( const Point3< T > &  start,
const Point3< T > &  end,
T  radius 
)
inlinestaticnoexcept

Definition at line 35 of file Capsule3.hpp.

◆ TryFromSegmentRadius()

template<typename T >
static std::optional< Capsule3 > mv::math::Capsule3< T >::TryFromSegmentRadius ( const Segment3< T > &  centerLine,
T  radius 
)
inlinestaticnoexcept

Definition at line 24 of file Capsule3.hpp.


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