QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
QgsVector operator- (void) const
QgsVector operator* (double scalar) const
QgsVector operator/ (double scalar) const
double operator* (QgsVector v) const
double length () const
double x () const
double y () const
QgsVector perpVector () const
double angle (void) const
double angle (QgsVector v) const
QgsVector rotateBy (double rot) const
QgsVector normal () const

Detailed Description

A class to represent a vector.

Currently no Z axis / 2.5D support is implemented.

Constructor & Destructor Documentation

QgsVector::QgsVector ( )
QgsVector::QgsVector ( double  x,
double  y 
)

Member Function Documentation

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

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