4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::math::sphere::object< T, N > Class Template Reference

Detailed Description

template<typename T, fcppt::math::size_type N>
class fcppt::math::sphere::object< T, N >

The object sphere class.

Template Parameters
TThe value type to hold
NThe static size of the sphere

Public Types

using value_type = T
 
using reference = T &
 
using const_reference = T const &
 
using point_type = fcppt::math::vector::static_<value_type, N>
 

Public Member Functions

 object (point_type const &origin, value_type const &radius)
 
 object (point_type &&origin, value_type &&radius)
 
point_typeorigin ()
 
point_type const & origin () const
 
reference radius ()
 
const_reference radius () const
 

Member Typedef Documentation

◆ const_reference

template<typename T , fcppt::math::size_type N>
using fcppt::math::sphere::object< T, N >::const_reference = T const &

◆ point_type

template<typename T , fcppt::math::size_type N>
using fcppt::math::sphere::object< T, N >::point_type = fcppt::math::vector::static_<value_type, N>

◆ reference

template<typename T , fcppt::math::size_type N>
using fcppt::math::sphere::object< T, N >::reference = T &

◆ value_type

template<typename T , fcppt::math::size_type N>
using fcppt::math::sphere::object< T, N >::value_type = T

Constructor & Destructor Documentation

◆ object() [1/2]

template<typename T , fcppt::math::size_type N>
fcppt::math::sphere::object< T, N >::object ( point_type const & origin,
value_type const & radius )

◆ object() [2/2]

template<typename T , fcppt::math::size_type N>
fcppt::math::sphere::object< T, N >::object ( point_type && origin,
value_type && radius )

Member Function Documentation

◆ origin() [1/2]

template<typename T , fcppt::math::size_type N>
point_type & fcppt::math::sphere::object< T, N >::origin ( )
nodiscard

◆ origin() [2/2]

template<typename T , fcppt::math::size_type N>
point_type const & fcppt::math::sphere::object< T, N >::origin ( ) const
nodiscard

◆ radius() [1/2]

template<typename T , fcppt::math::size_type N>
reference fcppt::math::sphere::object< T, N >::radius ( )
nodiscard

◆ radius() [2/2]

template<typename T , fcppt::math::size_type N>
const_reference fcppt::math::sphere::object< T, N >::radius ( ) const
nodiscard