0.12.0
Freundlich's C++ toolkit
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Functions
fcppt::math::sphere Namespace Reference

Classes

struct  circle
 Typedefs a sphere with a dimension of 2 (a circle) More...
 
class  object
 The object sphere class. More...
 

Functions

template<typename T , size_type N>
bool intersects (object< T, N > const &a, object< T, N > const &b)
 Checks if spheres a and b intersect.
 
template<typename T , size_type N>
bool operator== (object< T, N > const &, object< T, N > const &)
 
template<typename T , size_type N>
bool operator!= (object< T, N > const &, object< T, N > const &)
 
template<typename T , size_type N>
void swap (object< T, N > &, object< T, N > &)
 

Function Documentation

template<typename T , size_type N>
bool fcppt::math::sphere::intersects ( object< T, N > const &  a,
object< T, N > const &  b 
)

Checks if spheres a and b intersect.

template<typename T , size_type N>
bool fcppt::math::sphere::operator!= ( object< T, N > const &  _a,
object< T, N > const &  _b 
)
template<typename T , size_type N>
bool fcppt::math::sphere::operator== ( object< T, N > const &  _a,
object< T, N > const &  _b 
)
template<typename T , size_type N>
void fcppt::math::sphere::swap ( object< T, N > &  _a,
object< T, N > &  _b 
)