From 8d27f55eb36a66b3ea41fbbbdac0942109d229d4 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 3 Nov 2010 15:32:40 +0100 Subject: [PATCH] rm auto normalization in favor of clamping --- Eigen/src/Geometry/AngleAxis.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Geometry/AngleAxis.h b/Eigen/src/Geometry/AngleAxis.h index 73db5c6ad..52f1e323e 100644 --- a/Eigen/src/Geometry/AngleAxis.h +++ b/Eigen/src/Geometry/AngleAxis.h @@ -161,8 +161,11 @@ typedef AngleAxis AngleAxisf; * double precision angle-axis type */ typedef AngleAxis AngleAxisd; -/** Set \c *this from a quaternion. +/** Set \c *this from a \b unit quaternion. * The axis is normalized. + * + * \warning As any other method dealing with quaternion, if the input quaternion + * is not normalized then the result is undefined. */ template template @@ -176,7 +179,7 @@ AngleAxis& AngleAxis::operator=(const QuaternionBase