diff --git a/include/osg/Matrixd b/include/osg/Matrixd index aa4dafb90..03ef6aa2f 100644 --- a/include/osg/Matrixd +++ b/include/osg/Matrixd @@ -311,6 +311,10 @@ class OSG_EXPORT Matrixd #endif void setRotate(const Quat& q); + /** Get the matrix rotation as a Quat. Note that this function + * assumes a non-scaled matrix and will return incorrect results + * for scaled matrixces. Consider decompose() instead. + */ Quat getRotate() const; void setTrans( value_type tx, value_type ty, value_type tz ); diff --git a/include/osg/Matrixf b/include/osg/Matrixf index 5bcf65059..b7a20c9fc 100644 --- a/include/osg/Matrixf +++ b/include/osg/Matrixf @@ -312,6 +312,10 @@ class OSG_EXPORT Matrixf #endif void setRotate(const Quat& q); + /** Get the matrix rotation as a Quat. Note that this function + * assumes a non-scaled matrix and will return incorrect results + * for scaled matrixces. Consider decompose() instead. + */ Quat getRotate() const;