14 #ifndef PERLINNOISE2_H 15 #define PERLINNOISE2_H 30 unsigned long seed = 0);
34 INLINE
void set_scale(
double scale);
35 INLINE
void set_scale(
double sx,
double sy);
36 INLINE
void set_scale(
const LVecBase2f &scale);
37 INLINE
void set_scale(
const LVecBase2d &scale);
39 INLINE
double noise(
double x,
double y)
const;
40 INLINE
float noise(
const LVecBase2f &value)
const;
41 double noise(
const LVecBase2d &value)
const;
43 INLINE
double operator ()(
double x,
double y)
const;
44 INLINE
float operator ()(
const LVecBase2f &value)
const;
45 INLINE
double operator ()(
const LVecBase2d &value)
const;
48 void init_unscaled_xform();
49 INLINE
static double grad(
int hash,
double x,
double y);
52 LMatrix3d _unscaled_xform;
53 LMatrix3d _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 2 variables.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.