A simple dune model.
More...
#include <analyticfield.h>
|
| | AnalyticFieldDune (const double &, const double &, const double &) |
| | Create a dune node.
|
| |
|
| ~AnalyticFieldDune () |
| | Empty.
|
| |
| double | Value (const Vector2 &) const |
| | Return the field value at a given position.
|
| |
|
int | Memory () const |
| | Compute the size of a node.
|
| |
|
| AnalyticHeightField () |
| | Empty.
|
| |
| virtual double | Height (const Vector2 &) const |
| | Compute elevation at a given point.
|
| |
| virtual Vector | Normal (const Vector2 &) const |
| | Compute the normal to the field.
|
| |
| HeightField | CreateHeightField (const Box2 &, int, int) const |
| | Create a HeightField given an input domain.
|
| |
| double | Slope (const Vector2 &) const |
| | Compute the slope at a given point.
|
| |
| double | AverageSlope (const Vector2 &, int=8) const |
| | Compute the average slope at a given point.
|
| |
| double | Slope (const Vector2 &, const Vector2 &) const |
| | Compute the slope in a given direction and at a given point.
|
| |
| QVector< double > | Cross (const Vector2 &, const Vector2 &, int) const |
| | Compute the elevation along a segment.
|
| |
|
| double | e |
| | Noise function.
|
| |
|
double | a |
| | Amplitude.
|
| |
|
double | w |
| | Average wavelength between dunes.
|
| |
|
| static double | Ridge (const double &, const double &=0.0) |
| | Ridge function.
|
| |
| static double | Epsilon = 1e-6 |
| | Epsilon value used for gradient computation.
|
| |
◆ AnalyticFieldDune()
| AnalyticFieldDune::AnalyticFieldDune |
( |
const double & | e, |
|
|
const double & | a, |
|
|
const double & | w ) |
Create a dune node.
- Parameters
-
| e | Base elevation. |
| a | Amplitude. |
| w | Wavelength. |
◆ Value()
| double AnalyticFieldDune::Value |
( |
const Vector2 & | p | ) |
const |
|
virtual |
| double AnalyticFieldDune::e |
|
protected |
Noise function.
Base elevation.