Terra 1.0
HeightNode Class Reference

A height node. More...

#include <archestree.h>

Inheritance diagram for HeightNode:
TerraGaussian

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.

Detailed Description

A height node.

Member Function Documentation

◆ K() [1/2]

double HeightNode::K ( ) const
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.

◆ K() [2/2]

double HeightNode::K ( const Box2 & b) const
virtual

Lipschitz constant of the elevation function restricted to a box.

Parameters
bBox.
Returns
Zero if the box of the node does not intersect b, the Lipschitz constant K() otherwise.

References box, Box2::Intersect(), and k.