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);
#define AGX_TYPE_BINDING(_Type, _Name)
A class holding 3 dimensional vectors and providing basic arithmetic.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
UInt32 hash(const T &key)
const Vec3 Y_AXIS(0.0, 1.0, 0.0)
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
const Vec3 Z_AXIS(0.0, 0.0, 1.0)
Vec2i calculateCellId(Real x, Real y, Real invCellSize)
const Vec3 X_AXIS(1.0, 0.0, 0.0)
agx::UInt32 operator()(const Vec3T< T > &id) const