AP_Math: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
18d8f19801
commit
5d7d955378
@ -464,7 +464,7 @@ void Quaternion::rotate(const Vector3f &v)
|
|||||||
|
|
||||||
// convert this quaternion to a rotation vector where the direction of the vector represents
|
// 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
|
// 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));
|
const float l = sqrtf(sq(q2)+sq(q3)+sq(q4));
|
||||||
v = Vector3f(q2,q3,q4);
|
v = Vector3f(q2,q3,q4);
|
||||||
|
@ -89,7 +89,7 @@ public:
|
|||||||
|
|
||||||
// convert this quaternion to a rotation vector where the direction of the vector represents
|
// 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
|
// 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
|
// 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
|
// the axis of rotation and the length of the vector represents the angle of rotation
|
||||||
|
Loading…
Reference in New Issue
Block a user