56 const Vec3
X_AXIS( 1.0, 0.0, 0.0 );
57 const Vec3
Y_AXIS( 0.0, 1.0, 0.0 );
58 const Vec3
Z_AXIS( 0.0, 0.0, 1.0 );
68 return (p1 * x) ^ (p2 * y) ^ (p3 * z);
87 if (x <
Real(0.0)) cell[0]--;
88 if (y <
Real(0.0)) cell[1]--;
89 if (z <
Real(0.0)) cell[2]--;
96 return calculateCellId(position[0], position[1], position[2], invCellSize);
AGXCORE_EXPORT UInt32 hash(const T &key)
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
#define AGX_TYPE_BINDING(_Type, _Name)
Vec2i calculateCellId(Real x, Real y, Real invCellSize)
const Vec3 X_AXIS(1.0, 0.0, 0.0)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::UInt32 operator()(const Vec3T< T > &id) const
const Vec3 Y_AXIS(0.0, 1.0, 0.0)
const Vec3 Z_AXIS(0.0, 0.0, 1.0)