1 #ifndef BT_GIMPACT_QUANTIZATION_H_INCLUDED
2 #define BT_GIMPACT_QUANTIZATION_H_INCLUDED
43 btVector3 clampValue(quantizationMargin,quantizationMargin,quantizationMargin);
44 outMinBound = srcMinBound - clampValue;
45 outMaxBound = srcMaxBound + clampValue;
46 btVector3 aabbSize = outMaxBound - outMinBound;
62 clampedPoint.
setMax(min_bound);
63 clampedPoint.
setMin(max_bound);
65 btVector3 v = (clampedPoint - min_bound) * bvhQuantization;
66 out[0] = (
unsigned short)(v.
getX()+0.5f);
67 out[1] = (
unsigned short)(v.
getY()+0.5f);
68 out[2] = (
unsigned short)(v.
getZ()+0.5f);
73 const unsigned short* vecIn,
88 #endif // BT_GIMPACT_QUANTIZATION_H_INCLUDED