QCPVector2D Class Reference

#include </home/florent/devel/release/src/gepetto-viewer/plugins/pyqcustomplot/qcustomplot-2.0.1/qcustomplot.h>

Public Member Functions

 QCPVector2D ()
 
 QCPVector2D (double x, double y)
 
 QCPVector2D (const QPoint &point)
 
 QCPVector2D (const QPointF &point)
 
double x () const
 
double y () const
 
double & rx ()
 
double & ry ()
 
void setX (double x)
 
void setY (double y)
 
double length () const
 
double lengthSquared () const
 
QPoint toPoint () const
 
QPointF toPointF () const
 
bool isNull () const
 
void normalize ()
 
QCPVector2D normalized () const
 
QCPVector2D perpendicular () const
 
double dot (const QCPVector2D &vec) const
 
double distanceSquaredToLine (const QCPVector2D &start, const QCPVector2D &end) const
 
double distanceSquaredToLine (const QLineF &line) const
 
double distanceToStraightLine (const QCPVector2D &base, const QCPVector2D &direction) const
 
QCPVector2Doperator*= (double factor)
 
QCPVector2Doperator/= (double divisor)
 
QCPVector2Doperator+= (const QCPVector2D &vector)
 
QCPVector2Doperator-= (const QCPVector2D &vector)
 

Friends

const QCPVector2D operator* (double factor, const QCPVector2D &vec)
 
const QCPVector2D operator* (const QCPVector2D &vec, double factor)
 
const QCPVector2D operator/ (const QCPVector2D &vec, double divisor)
 
const QCPVector2D operator+ (const QCPVector2D &vec1, const QCPVector2D &vec2)
 
const QCPVector2D operator- (const QCPVector2D &vec1, const QCPVector2D &vec2)
 
const QCPVector2D operator- (const QCPVector2D &vec)
 

Related Functions

(Note that these are not member functions.)

QDebug operator<< (QDebug d, const QCPVector2D &vec)
 

Constructor & Destructor Documentation

◆ QCPVector2D() [1/4]

QCPVector2D::QCPVector2D ( )

◆ QCPVector2D() [2/4]

QCPVector2D::QCPVector2D ( double  x,
double  y 
)

◆ QCPVector2D() [3/4]

QCPVector2D::QCPVector2D ( const QPoint &  point)

◆ QCPVector2D() [4/4]

QCPVector2D::QCPVector2D ( const QPointF &  point)

Member Function Documentation

◆ distanceSquaredToLine() [1/2]

double QCPVector2D::distanceSquaredToLine ( const QCPVector2D start,
const QCPVector2D end 
) const

◆ distanceSquaredToLine() [2/2]

double QCPVector2D::distanceSquaredToLine ( const QLineF &  line) const

◆ distanceToStraightLine()

double QCPVector2D::distanceToStraightLine ( const QCPVector2D base,
const QCPVector2D direction 
) const

◆ dot()

double QCPVector2D::dot ( const QCPVector2D vec) const
inline

◆ isNull()

bool QCPVector2D::isNull ( ) const
inline

◆ length()

double QCPVector2D::length ( ) const
inline

◆ lengthSquared()

double QCPVector2D::lengthSquared ( ) const
inline

◆ normalize()

void QCPVector2D::normalize ( )

◆ normalized()

QCPVector2D QCPVector2D::normalized ( ) const

◆ operator*=()

QCPVector2D& QCPVector2D::operator*= ( double  factor)

◆ operator+=()

QCPVector2D& QCPVector2D::operator+= ( const QCPVector2D vector)

◆ operator-=()

QCPVector2D& QCPVector2D::operator-= ( const QCPVector2D vector)

◆ operator/=()

QCPVector2D& QCPVector2D::operator/= ( double  divisor)

◆ perpendicular()

QCPVector2D QCPVector2D::perpendicular ( ) const
inline

◆ rx()

double& QCPVector2D::rx ( )
inline

◆ ry()

double& QCPVector2D::ry ( )
inline

◆ setX()

void QCPVector2D::setX ( double  x)
inline

◆ setY()

void QCPVector2D::setY ( double  y)
inline

◆ toPoint()

QPoint QCPVector2D::toPoint ( ) const
inline

◆ toPointF()

QPointF QCPVector2D::toPointF ( ) const
inline

◆ x()

double QCPVector2D::x ( ) const
inline

◆ y()

double QCPVector2D::y ( ) const
inline

Friends And Related Function Documentation

◆ operator* [1/2]

const QCPVector2D operator* ( double  factor,
const QCPVector2D vec 
)
friend

◆ operator* [2/2]

const QCPVector2D operator* ( const QCPVector2D vec,
double  factor 
)
friend

◆ operator+

const QCPVector2D operator+ ( const QCPVector2D vec1,
const QCPVector2D vec2 
)
friend

◆ operator- [1/2]

const QCPVector2D operator- ( const QCPVector2D vec1,
const QCPVector2D vec2 
)
friend

◆ operator- [2/2]

const QCPVector2D operator- ( const QCPVector2D vec)
friend

◆ operator/

const QCPVector2D operator/ ( const QCPVector2D vec,
double  divisor 
)
friend

◆ operator<<()

QDebug operator<< ( QDebug  d,
const QCPVector2D vec 
)
related

Prints vec in a human readable format to the qDebug output.


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