]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/hypersphere.h
Miscellaneous fixes, mostly stylistic
[libs/math.git] / source / geometry / hypersphere.h
index de028fa580d627ed06d1cb811f43b104a450ed7a..35cddd1ac36461f4ee2a0e00122abda491ce3b0a 100644 (file)
@@ -23,7 +23,7 @@ private:
        T radius;
 
 public:
-       HyperSphere();
+       HyperSphere(): radius(1) { }
        explicit HyperSphere(T);
 
        virtual HyperSphere *clone() const;
@@ -37,11 +37,6 @@ public:
        virtual unsigned get_intersections(const Ray<T, D> &, SurfacePoint<T, D> *, unsigned) const;
 };
 
-template<typename T, unsigned D>
-inline HyperSphere<T, D>::HyperSphere():
-       radius(1)
-{ }
-
 template<typename T, unsigned D>
 inline HyperSphere<T, D>::HyperSphere(T r):
        radius(r)