point.h File Reference
#include <cmath>
#include <iostream>
Go to the source code of this file.
Classes |
struct | OrientedPoint2D |
struct | Point2D |
Functions |
double | deg2rad (double _angle) |
double | normAngle (double angle, double base) |
double | operator* (const Point2D &first, const Point2D &last) |
Point2D | operator* (const double last, const Point2D &first) |
Point2D | operator* (const Point2D &first, const double last) |
OrientedPoint2D | operator+ (const OrientedPoint2D &first, const OrientedPoint2D &last) |
Point2D | operator+ (const Point2D &first, const Point2D &last) |
OrientedPoint2D | operator- (const OrientedPoint2D &first, const OrientedPoint2D &last) |
Point2D | operator- (const Point2D &first, const Point2D &last) |
std::ostream & | operator<< (std::ostream &out, const OrientedPoint2D &point) |
std::ostream & | operator<< (std::ostream &out, const Point2D &point) |
double | rad2deg (double _angle) |
Function Documentation
double deg2rad |
( |
double |
_angle |
) |
[inline] |
Simple function for convrting degrees into radians
Definition at line 82 of file point.h.
double normAngle |
( |
double |
angle, |
|
|
double |
base | |
|
) |
| | |
Simple function for normalizing the angle into the interval
Definition at line 72 of file point.cpp.
double operator* |
( |
const Point2D & |
first, |
|
|
const Point2D & |
last | |
|
) |
| | [inline] |
Compute the dot product of two points
Definition at line 117 of file point.h.
Point2D operator* |
( |
const double |
last, |
|
|
const Point2D & |
first | |
|
) |
| | [inline] |
Compute the product of a point with a scalar
Definition at line 113 of file point.h.
Point2D operator* |
( |
const Point2D & |
first, |
|
|
const double |
last | |
|
) |
| | [inline] |
Compute the product of a point with a scalar
Definition at line 109 of file point.h.
Compute the analitical sum between two oriented points
Definition at line 105 of file point.h.
Compute the sum between two points
Definition at line 97 of file point.h.
Compute the analitical difference between two oriented points
Definition at line 101 of file point.h.
Compute the difference between two points
Definition at line 93 of file point.h.
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const OrientedPoint2D & |
point | |
|
) |
| | [inline] |
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const Point2D & |
point | |
|
) |
| | [inline] |
double rad2deg |
( |
double |
_angle |
) |
[inline] |
Simple function for converting radians into degrees
Definition at line 86 of file point.h.