25 #ifndef GIMPACT_MASS_UTIL_H
26 #define GIMPACT_MASS_UTIL_H
44 btScalar ix = rotatedTensor[0][0]*(y2+z2);
45 btScalar iy = rotatedTensor[1][1]*(x2+z2);
46 btScalar iz = rotatedTensor[2][2]*(x2+y2);
48 return btVector3(source_inertia[0]+ix,source_inertia[1]+iy,source_inertia[2] + iz);
56 return btVector3(mass*(y2+z2),mass*(x2+z2),mass*(x2+y2));
60 #endif //GIMPACT_MESH_SHAPE_H
#define SIMD_FORCE_INLINE
btMatrix3x3 scaled(const btVector3 &s) const
Create a scaled copy of the matrix.
btVector3 gim_inertia_add_transformed(const btVector3 &source_inertia, const btVector3 &added_inertia, const btTransform &transform)
btVector3 can be used to represent 3D points and vectors.
btMatrix3x3 transpose() const
Return the transpose of the matrix.
btVector3 gim_get_point_inertia(const btVector3 &point, btScalar mass)
The btMatrix3x3 class implements a 3x3 rotation matrix, to perform linear algebra in combination with...
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...