mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3286 c8812cc2-4d05-0410-92ff-de0c093fc19c
27 lines
591 B
C++
27 lines
591 B
C++
#ifndef QGSLEASTSQUARES_H
|
|
#define QGSLEASTSQUARES_H
|
|
|
|
#include <vector>
|
|
#include <cstdarg>
|
|
#include <stdexcept>
|
|
|
|
#include "qgspoint.h"
|
|
|
|
|
|
class QgsLeastSquares {
|
|
public:
|
|
static void linear(std::vector<QgsPoint> mapCoords,
|
|
std::vector<QgsPoint> pixelCoords,
|
|
QgsPoint& origin, double& pixelSize);
|
|
|
|
static void helmert(std::vector<QgsPoint> mapCoords,
|
|
std::vector<QgsPoint> pixelCoords,
|
|
QgsPoint& origin, double& pixelSize, double& rotation);
|
|
|
|
static void affine(std::vector<QgsPoint> mapCoords,
|
|
std::vector<QgsPoint> pixelCoords);
|
|
};
|
|
|
|
|
|
#endif
|