More vector conversion constructors: 3uw -> 3f
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6504 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
92b22e4d63
commit
efb3a5c4ac
|
@ -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__
|
||||
|
|
Loading…
Reference in New Issue