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
|
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.
|
|
◆ circle
Typedefs a sphere with a dimension of 2 (a circle)
◆ intersects()
Checks if two spheres intersect.
◆ operator!=()
Compares two spheres for inequality.
◆ operator<<()
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==()
Compares two spheres for equality.