|
fcppt 5.2.0
Freundlich's C++ toolkit
|
A class representing circles, spheres, ...
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 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. | |
| using fcppt::math::sphere::circle = fcppt::math::sphere::object<T, 2> |
Typedefs a sphere with a dimension of 2 (a circle).
| 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.
| 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.
| 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.
| 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.