QGIS API Documentation  2.14.0-Essen
Public Member Functions | List of all members
QgsVector Class Reference

A class to represent a vector. More...

#include <qgspoint.h>

Public Member Functions

 QgsVector ()
 
 QgsVector (double x, double y)
 
double angle (void) const
 
double angle (QgsVector v) const
 
double length () const
 
QgsVector normal () const
 
QgsVector operator* (double scalar) const
 
double operator* (QgsVector v) const
 
QgsVector operator- (void) const
 
QgsVector operator/ (double scalar) const
 
QgsVector perpVector () const
 
QgsVector rotateBy (double rot) const
 
double x () const
 
double y () const
 

Detailed Description

A class to represent a vector.

Currently no Z axis / 2.5D support is implemented.

Definition at line 32 of file qgspoint.h.

Constructor & Destructor Documentation

QgsVector::QgsVector ( )

Definition at line 31 of file qgspoint.cpp.

QgsVector::QgsVector ( double  x,
double  y 
)

Definition at line 35 of file qgspoint.cpp.

Member Function Documentation

double QgsVector::angle ( void  ) const
Note
not available in Python bindings

Definition at line 80 of file qgspoint.cpp.

double QgsVector::angle ( QgsVector  v) const

Definition at line 86 of file qgspoint.cpp.

double QgsVector::length ( ) const

Definition at line 59 of file qgspoint.cpp.

QgsVector QgsVector::normal ( ) const

Definition at line 98 of file qgspoint.cpp.

QgsVector QgsVector::operator* ( double  scalar) const

Definition at line 44 of file qgspoint.cpp.

double QgsVector::operator* ( QgsVector  v) const

Definition at line 54 of file qgspoint.cpp.

QgsVector QgsVector::operator- ( void  ) const
Note
not available in Python bindings

Definition at line 39 of file qgspoint.cpp.

QgsVector QgsVector::operator/ ( double  scalar) const

Definition at line 49 of file qgspoint.cpp.

QgsVector QgsVector::perpVector ( ) const

Definition at line 75 of file qgspoint.cpp.

QgsVector QgsVector::rotateBy ( double  rot) const

Definition at line 91 of file qgspoint.cpp.

double QgsVector::x ( ) const

Definition at line 64 of file qgspoint.cpp.

double QgsVector::y ( ) const

Definition at line 69 of file qgspoint.cpp.


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