15 #ifndef PERLINNOISE2_H
16 #define PERLINNOISE2_H
18 #include "pandabase.h"
19 #include "perlinNoise.h"
31 INLINE PerlinNoise2(
double sx,
double sy,
33 unsigned long seed = 0);
34 INLINE PerlinNoise2(
const PerlinNoise2 ©);
35 INLINE
void operator = (
const PerlinNoise2 ©);
37 INLINE
void set_scale(
double scale);
38 INLINE
void set_scale(
double sx,
double sy);
39 INLINE
void set_scale(
const LVecBase2f &scale);
40 INLINE
void set_scale(
const LVecBase2d &scale);
42 INLINE
double noise(
double x,
double y)
const;
43 INLINE
float noise(
const LVecBase2f &value)
const;
46 INLINE
double operator ()(
double x,
double y)
const;
47 INLINE
float operator ()(
const LVecBase2f &value)
const;
48 INLINE
double operator ()(
const LVecBase2d &value)
const;
51 void init_unscaled_xform();
52 INLINE
static double grad(
int hash,
double x,
double y);
59 #include "perlinNoise2.I"
This is the base class for PerlinNoise2 and PerlinNoise3, different dimensions of Perlin noise implem...
This is the base class for all two-component vectors and points.
This class provides an implementation of Perlin noise for 2 variables.
This is a 3-by-3 transform matrix.
This is the base class for all two-component vectors and points.