QGIS API Documentation  2.18.3-Las Palmas (77b8c3d)
Static Public Member Functions | List of all members
QgsBearingUtils Class Reference

Utilities for calculating bearings and directions. More...

#include <qgsbearingutils.h>

Static Public Member Functions

static double bearingTrueNorth (const QgsCoordinateReferenceSystem &crs, const QgsPoint &point)
 Returns the direction to true north from a specified point and for a specified coordinate reference system. More...
 

Detailed Description

Utilities for calculating bearings and directions.

Note
Added in version 2.18

Definition at line 31 of file qgsbearingutils.h.

Member Function Documentation

double QgsBearingUtils::bearingTrueNorth ( const QgsCoordinateReferenceSystem crs,
const QgsPoint point 
)
static

Returns the direction to true north from a specified point and for a specified coordinate reference system.

The returned value is in degrees clockwise from vertical. An exception will be thrown if the bearing could not be calculated.

Definition at line 24 of file qgsbearingutils.cpp.


The documentation for this class was generated from the following files: