]> git.tdb.fi Git - libs/math.git/blob - source/geometry/circle.h
Add basic description for all classes
[libs/math.git] / source / geometry / circle.h
1 #ifndef MSP_GEOMETRY_CIRCLE_H_
2 #define MSP_GEOMETRY_CIRCLE_H_
3
4 #include "hypersphere.h"
5
6 namespace Msp {
7 namespace Geometry {
8
9 /**
10 The two-dimensional special case of a HyperSphere.  This class exists for
11 convenience only and does not provide any extra functionality over the base
12 class.
13 */
14 template<typename T>
15 class Circle: public HyperSphere<T, 2>
16 {
17 public:
18         Circle() { }
19         explicit Circle(T r): HyperSphere<T, 2>(r) { }
20 };
21
22 } // namespace Geometry
23 } // namespace Msp
24
25 #endif