QGIS API Documentation
3.24.2-Tisler (13c1a02865)
|
#include "qgsleastsquares.h"
#include "qgsconfig.h"
#include "qgsexception.h"
#include <QObject>
#include <cmath>
#include <stdexcept>
Go to the source code of this file.
Functions | |
void | normalizeCoordinates (const QVector< QgsPointXY > &coords, QVector< QgsPointXY > &normalizedCoords, double normalizeMatrix[9], double denormalizeMatrix[9]) |
Scales the given coordinates so that the center of gravity is at the origin and the mean distance to the origin is sqrt(2). More... | |
void normalizeCoordinates | ( | const QVector< QgsPointXY > & | coords, |
QVector< QgsPointXY > & | normalizedCoords, | ||
double | normalizeMatrix[9], | ||
double | denormalizeMatrix[9] | ||
) |
Scales the given coordinates so that the center of gravity is at the origin and the mean distance to the origin is sqrt(2).
Also returns 3x3 homogeneous matrices which can be used to normalize and de-normalize coordinates.
Definition at line 203 of file qgsleastsquares.cpp.