#include <Shapes.h>
|
DllCoreExport friend QDataStream & | operator<< (QDataStream &s, const Vector2D &v) |
|
DllCoreExport friend QDebug | operator<< (QDebug d, const Vector2D &v) |
|
DllCoreExport friend bool | operator== (const Vector2D &l, const Vector2D &r) |
|
DllCoreExport friend bool | operator!= (const Vector2D &l, const Vector2D &r) |
|
DllCoreExport friend Vector2D | operator+ (const Vector2D &l, const Vector2D &r) |
|
DllCoreExport friend Vector2D | operator- (const Vector2D &l, const Vector2D &r) |
|
DllCoreExport friend double | operator* (const Vector2D &l, const Vector2D &r) |
| Computes the scalar product between l and r. More...
|
|
DllCoreExport friend Vector2D | operator* (const Vector2D &l, double s) |
|
DllCoreExport friend Vector2D | operator* (double s, const Vector2D &l) |
|
DllCoreExport friend Vector2D | operator/ (const Vector2D &l, double s) |
|
rdf::Vector2D::Vector2D |
( |
| ) |
|
rdf::Vector2D::Vector2D |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
rdf::Vector2D::Vector2D |
( |
const QPoint & |
p | ) |
|
rdf::Vector2D::Vector2D |
( |
const QPointF & |
p | ) |
|
rdf::Vector2D::Vector2D |
( |
const QSize & |
s | ) |
|
rdf::Vector2D::Vector2D |
( |
const QSizeF & |
s | ) |
|
rdf::Vector2D::Vector2D |
( |
const cv::Point & |
v | ) |
|
rdf::Vector2D::Vector2D |
( |
const cv::Size & |
s | ) |
|
double rdf::Vector2D::angle |
( |
| ) |
const |
void rdf::Vector2D::draw |
( |
QPainter & |
p | ) |
const |
bool rdf::Vector2D::isNeighbor |
( |
const Vector2D & |
other, |
|
|
double |
radius |
|
) |
| const |
bool rdf::Vector2D::isNull |
( |
| ) |
const |
double rdf::Vector2D::length |
( |
| ) |
const |
Vector2D rdf::Vector2D::normalVec |
( |
| ) |
const |
void rdf::Vector2D::operator*= |
( |
const double & |
scalar | ) |
|
|
inline |
void rdf::Vector2D::operator+= |
( |
const Vector2D & |
vec | ) |
|
|
inline |
void rdf::Vector2D::operator+= |
( |
const double & |
scalar | ) |
|
|
inline |
void rdf::Vector2D::operator-= |
( |
const Vector2D & |
vec | ) |
|
|
inline |
void rdf::Vector2D::operator-= |
( |
const double & |
scalar | ) |
|
|
inline |
void rdf::Vector2D::operator/= |
( |
const double & |
scalar | ) |
|
|
inline |
void rdf::Vector2D::rotate |
( |
double |
angle | ) |
|
void rdf::Vector2D::setX |
( |
double |
x | ) |
|
void rdf::Vector2D::setY |
( |
double |
y | ) |
|
double rdf::Vector2D::sqLength |
( |
| ) |
const |
Returns the vector's squared length.
- Returns
double rdf::Vector2D::theta |
( |
const Vector2D & |
o | ) |
const |
Computes the length normalized dot product between the vector and o.
- Parameters
-
- Returns
- The cosinus of theta, the angle between both vectors
cv::Point rdf::Vector2D::toCvPoint |
( |
| ) |
const |
cv::Point2d rdf::Vector2D::toCvPoint2d |
( |
| ) |
const |
cv::Point2f rdf::Vector2D::toCvPoint2f |
( |
| ) |
const |
cv::Size rdf::Vector2D::toCvSize |
( |
| ) |
const |
cv::Mat rdf::Vector2D::toMatCol |
( |
| ) |
const |
Converts the vector into a column cv::Mat.
- Returns
- a 1 x 2 CV_64FC2 mat.
cv::Mat rdf::Vector2D::toMatRow |
( |
| ) |
const |
Converts the vector into a row cv::Mat.
- Returns
- a 2 x 1 CV_64FC1 mat.
QPoint rdf::Vector2D::toQPoint |
( |
| ) |
const |
QPointF rdf::Vector2D::toQPointF |
( |
| ) |
const |
QSize rdf::Vector2D::toQSize |
( |
| ) |
const |
QSizeF rdf::Vector2D::toQSizeF |
( |
| ) |
const |
QString rdf::Vector2D::toString |
( |
| ) |
const |
double rdf::Vector2D::x |
( |
| ) |
const |
|
inline |
double rdf::Vector2D::y |
( |
| ) |
const |
|
inline |
Computes the scalar product between l and r.
- Parameters
-
l | A vector l. |
r | A vector r. |
- Returns
bool rdf::Vector2D::mIsNull = true |
|
protected |
double rdf::Vector2D::mX = 0 |
|
protected |
double rdf::Vector2D::mY = 0 |
|
protected |
The documentation for this class was generated from the following files: