4.4.1
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
fcppt.math.sphere

Description

A class representing circles, spheres, ...

Sphere overview

An n-dimensional sphere is an object defined by an n-dimensional center that is represented as an fcppt::math::vector::object and a radius.

Header files

Header file Description
object_fwd.hpp Contains fcppt::math::sphere::object's declaration.
object_decl.hpp Contains fcppt::math::sphere::object's definition.
object_impl.hpp Contains the definition of fcppt::math::sphere::object's member functions.
object.hpp Includes object_fwd.hpp, object_decl.hpp and object_impl.hpp.
comparison.hpp Contains all comparison operators.
output.hpp Contains operator<<.

Classes

class  fcppt::math::sphere::object< T, N >
 The object sphere class. More...
 

Typedefs

template<typename T >
using fcppt::math::sphere::circle = fcppt::math::sphere::object< T, 2 >
 Typedefs a sphere with a dimension of 2 (a circle)
 

Functions

template<typename T , fcppt::math::size_type N>
bool fcppt::math::sphere::operator== (fcppt::math::sphere::object< T, N > const &_a, fcppt::math::sphere::object< T, N > const &_b)
 Compares two spheres for equality.
 
template<typename T , fcppt::math::size_type N>
bool fcppt::math::sphere::operator!= (fcppt::math::sphere::object< T, N > const &_a, fcppt::math::sphere::object< T, N > const &_b)
 Compares two spheres for inequality.
 
template<typename T , fcppt::math::size_type N>
bool fcppt::math::sphere::intersects (fcppt::math::sphere::object< T, N > const &_a, fcppt::math::sphere::object< T, N > const &_b)
 Checks if two spheres intersect.
 
template<typename T , fcppt::math::size_type Size, typename Ch , typename Traits >
std::basic_ostream< Ch, Traits > & fcppt::math::sphere::operator<< (std::basic_ostream< Ch, Traits > &_stream, fcppt::math::sphere::object< T, Size > const &_sphere)
 Outputs a sphere to a stream.
 

Typedef Documentation

◆ circle

template<typename T >
using fcppt::math::sphere::circle = typedef fcppt::math::sphere::object<T, 2>

Typedefs a sphere with a dimension of 2 (a circle)

Function Documentation

◆ intersects()

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

Checks if two spheres intersect.

◆ operator!=()

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

Compares two spheres for inequality.

◆ operator<<()

template<typename T , fcppt::math::size_type Size, typename Ch , typename Traits >
std::basic_ostream< Ch, Traits > & fcppt::math::sphere::operator<< ( std::basic_ostream< Ch, Traits > &  _stream,
fcppt::math::sphere::object< T, Size > const &  _sphere 
)

Outputs a sphere to a stream.

◆ operator==()

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

Compares two spheres for equality.