From: Mikko Rasa Date: Sun, 19 May 2013 18:08:13 +0000 (+0300) Subject: Some more member mis-use fixes X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=commitdiff_plain;h=93e7cf250208c36befb4b1a7337f5302c0e1da54 Some more member mis-use fixes --- diff --git a/source/geometry/angle.h b/source/geometry/angle.h index fbf6d06..207a5a2 100644 --- a/source/geometry/angle.h +++ b/source/geometry/angle.h @@ -20,7 +20,7 @@ private: public: Angle(): value(0) { } template - Angle(const Angle &other): value(other.value) { } + Angle(const Angle &other): value(other.radians()) { } static Angle from_degrees(T); static Angle from_radians(T); diff --git a/source/geometry/transformedshape.h b/source/geometry/transformedshape.h index 10af1e7..10789ed 100644 --- a/source/geometry/transformedshape.h +++ b/source/geometry/transformedshape.h @@ -47,7 +47,7 @@ inline TransformedShape &TransformedShape::operator=(const Transform { delete shape; shape = other.shape->clone(); - transformation = other.transformation(); + transformation = other.transformation; } template