|
static int * | perlinGeneratePerm () |
| Generate the permutation table.
|
|
static void | permute (int *perm, int n) |
| Permute the permutation table.
|
|
static double | perlinInterp (const Utils::Vec3 c[2][2][2], double u, double v, double w) |
| Interpolate the noise value.
|
|
◆ Perlin()
Raytracer::Utils::Perlin::Perlin |
( |
| ) |
|
Construct a new Perlin object.
This function constructs a new Perlin object. The Perlin object is a Perlin noise generator. The Perlin noise is a type of gradient noise.
- Returns
- A new Perlin object.
◆ ~Perlin()
Raytracer::Utils::Perlin::~Perlin |
( |
| ) |
|
Destroy the Perlin object.
This function destroys the Perlin object.
◆ noise()
double Raytracer::Utils::Perlin::noise |
( |
const Utils::Point3 & | point | ) |
const |
Get the noise value at the given point.
This function returns the noise value at the given point.
- Parameters
-
- Returns
- The noise value.
◆ perlinGeneratePerm()
int * Raytracer::Utils::Perlin::perlinGeneratePerm |
( |
| ) |
|
|
static |
Generate the permutation table.
This function generates the permutation table.
- Returns
- The permutation table.
◆ perlinInterp()
double Raytracer::Utils::Perlin::perlinInterp |
( |
const Utils::Vec3 | c[2][2][2], |
|
|
double | u, |
|
|
double | v, |
|
|
double | w ) |
|
static |
Interpolate the noise value.
This function interpolates the noise value.
- Parameters
-
c | The noise value. |
u | The U coordinate. |
v | The V coordinate. |
w | The W coordinate. |
- Returns
- The interpolated noise value.
◆ permute()
void Raytracer::Utils::Perlin::permute |
( |
int * | perm, |
|
|
int | n ) |
|
static |
Permute the permutation table.
This function permutes the permutation table.
- Parameters
-
perm | The permutation table. |
n | The size of the permutation table. |
◆ turbulence()
double Raytracer::Utils::Perlin::turbulence |
( |
const Utils::Point3 & | point, |
|
|
int | depth = 7 ) const |
Get the turbulence value at the given point.
This function returns the turbulence value at the given point.
- Parameters
-
point | The point. |
depth | The depth. |
- Returns
- The turbulence value.
The documentation for this class was generated from the following files:
- /Users/javii/Code/raytracer/include/utils/Perlin.hpp
- /Users/javii/Code/raytracer/sources/utils/Perlin.cpp