QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
#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). | |
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 195 of file qgsleastsquares.cpp.