20 INLINE
unsigned char LinearNoiseForce::
21 prn_lookup(
int index)
const {
22 return _prn_table[index & 255];
30 INLINE
unsigned char LinearNoiseForce::
31 get_prn_entry(
const LPoint3& point)
const {
32 return prn_lookup((
int)(point[0] + prn_lookup((
int)(point[1] + prn_lookup((
int)point[2])))));
40 INLINE
unsigned char LinearNoiseForce::
41 get_prn_entry(
const PN_stdfloat x,
const PN_stdfloat y,
const PN_stdfloat z)
const {
42 return prn_lookup((
int)(x + prn_lookup((
int)(y + prn_lookup((
int)z)))));
51 get_lattice_entry(
const LPoint3& point) {
52 return _gradient_table[get_prn_entry(point)];
61 get_lattice_entry(
const PN_stdfloat x,
const PN_stdfloat y,
const PN_stdfloat z) {
62 return _gradient_table[get_prn_entry(x, y, z)];
71 INLINE PN_stdfloat LinearNoiseForce::
72 cubic_step(
const PN_stdfloat x)
const {
73 return x * x * ((2 * x) - 3);
83 return v0 + ((v1 - v0) * t);
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...