|
Terra 1.0
|
A height node. More...
#include <archestree.h>
Public Member Functions | |
| virtual double | K () const |
| Lipschitz constant of the elevation function. | |
| virtual double | K (const Box2 &) const |
| Lipschitz constant of the elevation function restricted to a box. | |
Protected Attributes | |
| Box2 | box = Box2::Infinity |
| Bounding box. | |
| double | k = 1.0 |
| Lipschitz constant of the elevation function. | |
A height node.
|
virtual |
Lipschitz constant of the elevation function.
The value is an upper bound \(K\) such that \(|f(a)-f(b)| \le K \, \|a-b\|\) for all points \(a\) and \(b\), i.e. an upper bound of the norm of the gradient of the elevation. Classes deriving from HeightNode should set the protected member HeightNode::k accordingly, otherwise the default value is returned, which is not valid in general. See TerraGaussian for a detailed example of computation.
References k.