QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
BilinearUV.h File Reference
#include <QtCore/QtMinMax>
#include <cmath>
Include dependency graph for BilinearUV.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename SampleAt>
double bilinearAtUV (int w, int h, double u, double v, SampleAt at)

Function Documentation

◆ bilinearAtUV()

template<typename SampleAt>
double bilinearAtUV ( int w,
int h,
double u,
double v,
SampleAt at )

Bilinear sample at a unit-UV position within a w x h sample grid (origin NW corner), sample-center convention, clamped at grid edges. at(x, y) returns the sample value as double.

The one shared interpolation for all elevation samplers: cross-source vertex identity requires bit-identical arithmetic, so samplers must go through this template rather than reimplementing it.

Definition at line 24 of file BilinearUV.h.

Referenced by PatchSampler::heightAtUV().