X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgeometry%2Fhypersphere.h;h=35cddd1ac36461f4ee2a0e00122abda491ce3b0a;hb=1e34b120f1229b1390cee67c917829715615ccd0;hp=de028fa580d627ed06d1cb811f43b104a450ed7a;hpb=cc51208545c3941fcfdb078ad0c70c7fd607614e;p=libs%2Fmath.git diff --git a/source/geometry/hypersphere.h b/source/geometry/hypersphere.h index de028fa..35cddd1 100644 --- a/source/geometry/hypersphere.h +++ b/source/geometry/hypersphere.h @@ -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 &, SurfacePoint *, unsigned) const; }; -template -inline HyperSphere::HyperSphere(): - radius(1) -{ } - template inline HyperSphere::HyperSphere(T r): radius(r)