2.10.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

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

Public Member Functions

 object (point_type const &origin, const_reference 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>
typedef T const& fcppt::math::sphere::object< T, N >::const_reference

◆ point_type

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

◆ reference

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

◆ value_type

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

Constructor & Destructor Documentation

◆ object()

template<typename T , fcppt::math::size_type N>
fcppt::math::sphere::object< T, N >::object ( point_type const &  origin,
const_reference  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