3.8.0
Freundlich's C++ toolkit
Public Types | Public Member Functions
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 origin, value_type radius)
 Constructs a sphere from origin and radius. More...
 
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()

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

Constructs a sphere from origin and radius.

Member Function Documentation

◆ origin() [1/2]

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

◆ origin() [2/2]

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

◆ radius() [1/2]

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

◆ radius() [2/2]

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