Havok: Add a convenience function to get a zero hkVector4f

This commit is contained in:
Léo Lam 2022-01-16 13:17:08 +01:00
parent 2ed36c7dc0
commit c5b5954f92
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,12 @@ public:
template <int Constant>
HK_FORCE_INLINE static const hkVector4f& getConstant();
HK_FORCE_INLINE static hkVector4f zero() {
hkVector4f u;
u.setZero();
return u;
}
/// Store N floats to out.
template <int N>
void store(hkFloat32* out) const;