AP_Math: float to double promotion via cos instead of cosf

This commit is contained in:
Tom Pittenger 2015-05-15 09:01:27 -07:00 committed by Andrew Tridgell
parent 7b95241306
commit 5f677c2b5b

View File

@ -157,7 +157,7 @@ void Quaternion::from_axis_angle(const Vector3f &axis, float theta) {
}
float st2 = sinf(theta/2.0f);
q1 = cos(theta/2.0f);
q1 = cosf(theta/2.0f);
q2 = axis.x * st2;
q3 = axis.y * st2;
q4 = axis.z * st2;