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

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

Public Types

using Component = T
 

Public Member Functions

 Sphere3 () noexcept=default
 
Point3< T > Center () const noexcept
 
T Radius () const noexcept
 
T Diameter () const noexcept
 
bool Contains (const Point3< T > &point) const noexcept
 

Static Public Member Functions

static std::optional< Sphere3 > TryFromCenterRadius (const Point3< T > &center, T radius) noexcept
 

Detailed Description

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

Definition at line 16 of file Sphere3.hpp.

Member Typedef Documentation

◆ Component

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

Definition at line 19 of file Sphere3.hpp.

Constructor & Destructor Documentation

◆ Sphere3()

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

Member Function Documentation

◆ Center()

template<typename T >
Point3< T > mv::math::Sphere3< T >::Center ( ) const
inlinenoexcept

Definition at line 35 of file Sphere3.hpp.

◆ Contains()

template<typename T >
bool mv::math::Sphere3< T >::Contains ( const Point3< T > &  point) const
inlinenoexcept

Definition at line 50 of file Sphere3.hpp.

◆ Diameter()

template<typename T >
T mv::math::Sphere3< T >::Diameter ( ) const
inlinenoexcept

Definition at line 45 of file Sphere3.hpp.

◆ Radius()

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

Definition at line 40 of file Sphere3.hpp.

◆ TryFromCenterRadius()

template<typename T >
static std::optional< Sphere3 > mv::math::Sphere3< T >::TryFromCenterRadius ( const Point3< T > &  center,
T  radius 
)
inlinestaticnoexcept

Definition at line 23 of file Sphere3.hpp.


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