]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/circle.h
Beginnings of a geometry library
[libs/math.git] / source / geometry / circle.h
diff --git a/source/geometry/circle.h b/source/geometry/circle.h
new file mode 100644 (file)
index 0000000..ebc1c41
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef MSP_GEOMETRY_CIRCLE_H_
+#define MSP_GEOMETRY_CIRCLE_H_
+
+#include "hypersphere.h"
+
+namespace Msp {
+namespace Geometry {
+
+template<typename T>
+class Circle: public HyperSphere<T, 2>
+{
+public:
+       Circle() { }
+       explicit Circle(T r): HyperSphere<T, 2>(r) { }
+};
+
+} // namespace Geometry
+} // namespace Msp
+
+#endif