75 return hash(
id.x(),
id.y(),
id.z() );
91 return hash( v.
x(), v.
y(), v.
z() );
101 if (x <
Real(0.0)) cell[0]--;
102 if (y <
Real(0.0)) cell[1]--;
103 if (z <
Real(0.0)) cell[2]--;
110 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.
UInt64 hash64(UInt64 x, UInt64 y, UInt64 z)
const Vec3 Z_AXIS(0.0, 0.0, 1.0)
UInt64 spatialHash(double x, double eps)
Hash function suitable for spatial hashing with configurable grid spacing eps.
Vec2i calculateCellId(Real x, Real y, Real invCellSize)
const Vec3 X_AXIS(1.0, 0.0, 0.0)
UInt32 operator()(const Vec3T< T > &id) const
UInt32 operator()(const Vec3T< UInt64 > &id) const