stator
A math, geometry, and utility library
Classes | Namespaces | Functions
sphere.hpp File Reference
#include "stator/config.hpp"
#include "stator/constants.hpp"

Go to the source code of this file.

Classes

class  stator::geometry::Ball< Scalar, D >
 An n-ball (an n-sphere including its interior volume). More...
 
class  stator::geometry::InverseBall< Scalar, D >
 An inverse n-ball (an n-sphere including its exterior volume). More...
 
class  stator::geometry::detail::UnitBall< Scalar, D >
 An empty-class representation of a unit ball. More...
 

Namespaces

 stator
 The stator library namespace.
 
 stator::geometry
 Geometric types and algorithms for calculating properties (e.g., intersection, volume).
 
 stator::geometry::detail
 

Functions

template<typename Scalar , size_t D>
Scalar stator::geometry::area (const Ball< Scalar, D > &sphere)
 Calculate the surface area of a n-ball. More...
 
template<typename Scalar , size_t D>
Scalar stator::geometry::volume (const Ball< Scalar, D > &ball)
 Calculate the volume of a n-ball. More...