Hi!

This tiny patch marks Matrix4<T>::getTranslation() as const
in externals/vmmlib/matrix4.h.


Index: matrix4.h
===================================================================
--- matrix4.h   (revision 120)
+++ matrix4.h   (working copy)
@@ -191,7 +191,7 @@
     void setTranslation( const T x, const T y, const T z );
     void setTranslation( const T trans[3] );
     void setTranslation( const Vector3< T >& trans );
-    Vector3< T > getTranslation();
+    Vector3< T > getTranslation() const;
 
     void tensor( const Vector3< T >& u, const Vector3< T >& v );
     void tensor( const Vector4< T >& u, const Vector4< T >& v );
@@ -1337,7 +1337,7 @@
 
 template< typename T >
 Vector3< T > 
-Matrix4< T >::getTranslation()
+Matrix4< T >::getTranslation() const
 {
     return Vector3< T > ( ml[12], ml[13], ml[14] );
 }



Martin
-- 
Computer Graphics and Multimedia Systems Group
University of Siegen, Germany
http://www.cg.informatik.uni-siegen.de/

_______________________________________________
eq-dev mailing list
[email protected]
https://in-zueri.ch/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to