14 #ifndef PERLINNOISE3_H 15 #define PERLINNOISE3_H 28 INLINE
explicit PerlinNoise3(
double sx,
double sy,
double sz,
30 unsigned long seed = 0);
34 INLINE
void set_scale(
double scale);
35 INLINE
void set_scale(
double sx,
double sy,
double sz);
36 INLINE
void set_scale(
const LVecBase3f &scale);
37 INLINE
void set_scale(
const LVecBase3d &scale);
39 INLINE
double noise(
double x,
double y,
double z)
const;
40 INLINE
float noise(
const LVecBase3f &value)
const;
41 double noise(
const LVecBase3d &value)
const;
43 INLINE
double operator ()(
double x,
double y,
double z)
const;
44 INLINE
float operator ()(
const LVecBase3f &value)
const;
45 INLINE
double operator ()(
const LVecBase3d &value)
const;
48 void init_unscaled_xform();
49 INLINE
static double grad(
int hash,
double x,
double y,
double z);
52 LMatrix4d _unscaled_xform;
53 LMatrix4d _input_xform;
This is the base class for PerlinNoise2 and PerlinNoise3, different dimensions of Perlin noise implem...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class provides an implementation of Perlin noise for 3 variables.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.