|
HighMap library (C++)
|
Quadratic surface function defined by four corner values. More...
#include <functions.hpp>

Public Member Functions | |
| float | operator() (float x, float y, float ctrl_param=0.f) const |
| QuadSurfaceFunction (float c00, float c10, float c01, float c11) | |
| Construct a new QuadSurface Function object. | |
Protected Attributes | |
| float | c00 |
| Bottom-left value. | |
| float | c10 |
| Bottom-right value. | |
| float | c01 |
| Top-left value. | |
| float | c11 |
| Top-right value. | |
| BBox2D | bbox |
| Domain bounding box. | |
Quadratic surface function defined by four corner values.
This class interpolates a surface across the bounding box domain using bilinear/quadratic interpolation from four corner elevations: c00 (bottom-left), c10 (bottom-right), c01 (top-left), and c11 (top-right).
| hmap::QuadSurfaceFunction::QuadSurfaceFunction | ( | float | c00, |
| float | c10, | ||
| float | c01, | ||
| float | c11 ) |
Construct a new QuadSurface Function object.
| c00 | Value at bottom-left corner (x=xmin, y=ymin). |
| c10 | Value at bottom-right corner (x=xmax, y=ymin). |
| c01 | Value at top-left corner (x=xmin, y=ymax). |
| c11 | Value at top-right corner (x=xmax, y=ymax). |
| float hmap::QuadSurfaceFunction::operator() | ( | float | x, |
| float | y, | ||
| float | ctrl_param = 0.f ) const |
|
protected |
Bottom-left value.
|
protected |
Bottom-right value.
|
protected |
Top-left value.
|
protected |
Top-right value.
|
protected |
Domain bounding box.