QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
23 double angle = std::atan2( mY, mX ) + rot;
34 throw QgsException( QStringLiteral(
"normalized vector of null vector undefined" ) );
Defines a QGIS exception class.
double angle() const SIP_HOLDGIL
Returns the angle of the vector in radians.
QgsVector rotateBy(double rot) const SIP_HOLDGIL
Rotates the vector by a specified angle.
QgsVector()=default
Default constructor for QgsVector.
QgsVector normalized() const SIP_THROW(QgsException)
Returns the vector's normalized (or "unit") vector (ie same angle but length of 1....
double length() const SIP_HOLDGIL
Returns the length of the vector.
A class to represent a vector.