Fixed compiler warnings.
This commit is contained in:
parent
9e0a90f634
commit
b7837fd05c
@ -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.
|
||||
|
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user