26#include "moc_qgsbearingutils.cpp"
39 throw QgsException( QObject::tr(
"Could not create transform to calculate true north" ) );
49 p2.
setY( p2.
y() + 0.000001 );
@ Reverse
Reverse/inverse transform (from destination to source).
static Q_INVOKABLE double bearingTrueNorth(const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &transformContext, const QgsPointXY &point)
Returns the direction to true north from a specified point and for a specified coordinate reference s...
Represents a coordinate reference system (CRS).
bool isValid() const
Returns whether this CRS is correctly initialized and usable.
QgsCoordinateReferenceSystem toGeographicCrs() const
Returns the geographic CRS associated with this CRS object.
Contains information about the context in which a coordinate transform is executed.
Defines a QGIS exception class.
void setY(double y)
Sets the y value of the point.
double azimuth(const QgsPointXY &other) const
Calculates azimuth between this point and other one (clockwise in degree, starting from north).