]> git.tdb.fi Git - libs/math.git/commitdiff
Some more member mis-use fixes
authorMikko Rasa <tdb@tdb.fi>
Sun, 19 May 2013 18:08:13 +0000 (21:08 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 19 May 2013 18:08:13 +0000 (21:08 +0300)
source/geometry/angle.h
source/geometry/transformedshape.h

index fbf6d061af0b9aef10b2f0cbb8b58e8b84ed8ac4..207a5a273721a3475e6302abeffa6995f336dbf7 100644 (file)
@@ -20,7 +20,7 @@ private:
 public:
        Angle(): value(0) { }
        template<typename U>
-       Angle(const Angle<U> &other): value(other.value) { }
+       Angle(const Angle<U> &other): value(other.radians()) { }
 
        static Angle from_degrees(T);
        static Angle from_radians(T);
index 10af1e7588a7c2efb357037113f9e22970fe887f..10789ed1e15bb2db2227b6d5e1fe1f12c5adfaca 100644 (file)
@@ -47,7 +47,7 @@ inline TransformedShape<T, D> &TransformedShape<T, D>::operator=(const Transform
 {
        delete shape;
        shape = other.shape->clone();
-       transformation = other.transformation();
+       transformation = other.transformation;
 }
 
 template<typename T, unsigned D>