Program Listing for File ElevationInterpolator.hpp

Return to documentation for file (src/navtk/geospatial/ElevationInterpolator.hpp)

#pragma once

#include <utility>

namespace navtk {
namespace geospatial {

class ElevationInterpolator {
public:
    ElevationInterpolator(double top_left,
                          double top_right,
                          double bottom_left,
                          double bottom_right);

    double interpolate(std::pair<double, double> fractions) const;

private:
    double top_left;
    double top_right;
    double bottom_left;
    double bottom_right;
};

}  // namespace geospatial
}  // namespace navtk