|
Core 1.0
|
Worm noise. More...
#include <wormnoise.h>
Public Member Functions | |
| WormNoise (double, const Vector2 &) | |
| Create worm noise. | |
| Vector | Noise (const Vector2 &) const |
| Compute worm noise value. | |
| double | Value (const Vector2 &) const |
| Compute worm noise value. | |
Public Member Functions inherited from AnalyticScalarField2 | |
| AnalyticScalarField2 (bool=true) | |
| Constructor. | |
| virtual Vector2 | Gradient (const Vector2 &) const |
| Compute the gradient of the field. | |
| virtual Matrix2 | Hessian (const Vector2 &) const |
| Compute the hessian at a given point. | |
| virtual ScalarField2 | Sample (const Array2 &) const |
| Create a discrete scalar field by sampling a given domain. | |
| bool | Inside (const double &) const |
| Check if the value is considered as inside or outside. | |
| void | Curvature (const Vector2 &, double &, double &) const |
| Compute the gaussian and mean curvatures. | |
| virtual Box2 | GetBox () const |
| Return the bounding box. | |
Protected Member Functions | |
| Vector2 | Hash (const Vector2 &) const |
| Hash function for worm noise. | |
Protected Member Functions inherited from AnalyticScalarField2 | |
| Matrix | Local (const Vector2 &) const |
| Compute the local neighborhood in the one-ring aroung a point. | |
Additional Inherited Members | |
Protected Attributes inherited from AnalyticScalarField2 | |
| bool | sign = true |
| Sign convention, used for normal computation. | |
| Box2 | box = Box2::Infinity |
| Domain, set as infinite for base class. | |
Static Protected Attributes inherited from AnalyticScalarField2 | |
| static const double | epsilon = 1e-6 |
| \epsilon; value for partial derivatives | |
Worm noise.
|
explicit |
Create worm noise.
| t | Thickness. |
| o | Offset. |
Hash function for worm noise.
| p | Point. |
|
virtual |