AP_Math: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:26:31 -03:00 committed by Andrew Tridgell
parent 18d8f19801
commit 5d7d955378
2 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ void Quaternion::rotate(const Vector3f &v)
// convert this quaternion to a rotation vector where the direction of the vector represents
// the axis of rotation and the length of the vector represents the angle of rotation
void Quaternion::to_axis_angle(Vector3f &v)
void Quaternion::to_axis_angle(Vector3f &v) const
{
const float l = sqrtf(sq(q2)+sq(q3)+sq(q4));
v = Vector3f(q2,q3,q4);

View File

@ -89,7 +89,7 @@ public:
// convert this quaternion to a rotation vector where the direction of the vector represents
// the axis of rotation and the length of the vector represents the angle of rotation
void to_axis_angle(Vector3f &v);
void to_axis_angle(Vector3f &v) const;
// create a quaternion from a rotation vector where the direction of the vector represents
// the axis of rotation and the length of the vector represents the angle of rotation