|
| QgsVector ()=default |
| Default constructor for QgsVector. More...
|
|
| QgsVector (double x, double y) |
| Constructor for QgsVector taking x and y component values. More...
|
|
double | angle () const SIP_HOLDGIL |
| Returns the angle of the vector in radians. More...
|
|
double | angle (QgsVector v) const SIP_HOLDGIL |
| Returns the angle between this vector and another vector in radians. More...
|
|
double | crossProduct (QgsVector v) const SIP_HOLDGIL |
| Returns the 2D cross product of this vector and another vector v. More...
|
|
double | length () const SIP_HOLDGIL |
| Returns the length of the vector. More...
|
|
double | lengthSquared () const SIP_HOLDGIL |
| Returns the length of the vector. More...
|
|
QgsVector | normalized () const SIP_THROW(QgsException) |
| Returns the vector's normalized (or "unit") vector (ie same angle but length of 1.0). More...
|
|
bool | operator!= (QgsVector other) const |
| Inequality operator. More...
|
|
QgsVector | operator* (double scalar) const SIP_HOLDGIL |
| Returns a vector where the components have been multiplied by a scalar value. More...
|
|
double | operator* (QgsVector v) const SIP_HOLDGIL |
| Returns the dot product of two vectors, which is the sum of the x component of this vector multiplied by the x component of another vector plus the y component of this vector multiplied by the y component of another vector. More...
|
|
QgsVector | operator+ (QgsVector other) const SIP_HOLDGIL |
| Adds another vector to this vector. More...
|
|
QgsVector & | operator+= (QgsVector other) SIP_HOLDGIL |
| Adds another vector to this vector in place. More...
|
|
QgsVector | operator- () const SIP_HOLDGIL |
| Swaps the sign of the x and y components of the vector. More...
|
|
QgsVector | operator- (QgsVector other) const SIP_HOLDGIL |
| Subtracts another vector to this vector. More...
|
|
QgsVector & | operator-= (QgsVector other) SIP_HOLDGIL |
| Subtracts another vector to this vector in place. More...
|
|
QgsVector | operator/ (double scalar) const SIP_HOLDGIL |
| Returns a vector where the components have been divided by a scalar value. More...
|
|
bool | operator== (QgsVector other) const SIP_HOLDGIL |
| Equality operator. More...
|
|
QgsVector | perpVector () const SIP_HOLDGIL |
| Returns the perpendicular vector to this vector (rotated 90 degrees counter-clockwise) More...
|
|
QgsVector | rotateBy (double rot) const SIP_HOLDGIL |
| Rotates the vector by a specified angle. More...
|
|
QString | toString (int precision=17) const SIP_HOLDGIL |
| Returns a string representation of the vector. More...
|
|
double | x () const SIP_HOLDGIL |
| Returns the vector's x-component. More...
|
|
double | y () const SIP_HOLDGIL |
| Returns the vector's y-component. More...
|
|