More vector conversion constructors: 3uw -> 3f

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6504 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2008-12-26 01:46:24 +00:00
parent 92b22e4d63
commit efb3a5c4ac
1 changed files with 12 additions and 0 deletions

View File

@ -774,4 +774,16 @@ static inline WZ_DECL_CONST Vector3i Vector3uw_To3i(const Vector3uw v)
}
/*!
* Convert an short vector to int
* \param v Vector to convert
* \return Short vector
*/
static inline WZ_DECL_CONST Vector3f Vector3uw_To3f(const Vector3uw v)
{
Vector3f dest = { (float)v.x, (float)v.y, (float)v.z };
return dest;
}
#endif // __INCLUDED_LIB_IVIS_PIEVECTOR_H__