Fixed compiler warnings.

This commit is contained in:
hiker 2015-09-21 07:44:00 +10:00
parent 9e0a90f634
commit b7837fd05c
2 changed files with 4 additions and 4 deletions

View File

@ -41,8 +41,8 @@ void Vec3::setHPR(const btQuaternion& q)
*/
void Vec3::setPitchRoll(const Vec3 &normal)
{
const float X = sin(getHeading());
const float Z = cos(getHeading());
const float X = sinf(getHeading());
const float Z = cosf(getHeading());
// Compute the angle between the normal of the plane and the line to
// (x,0,z). (x,0,z) is normalised, so are the coordinates of the plane,
// which simplifies the computation of the scalar product.

View File

@ -185,8 +185,8 @@ public:
* used as a 2d vector. */
// ------------------------------------------------------------------------
/** Returns the length of the vector using only the x/z coordinates. */
float length_2d() const {return sqrt( m_floats[0]*m_floats[0]
+ m_floats[2]*m_floats[2]);}
float length_2d() const {return sqrtf( m_floats[0]*m_floats[0]
+ m_floats[2]*m_floats[2]);}
// ------------------------------------------------------------------------
/** Sets this = max(this, a) componentwise.
* \param Vector to compare with. */