point.h File Reference

#include <cmath>
#include <iostream>
Include dependency graph for point.h:
This graph shows which files directly or indirectly include this file:

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 $(base, 2\pi + base)$

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.

OrientedPoint2D operator+ ( const OrientedPoint2D first,
const OrientedPoint2D last 
) [inline]

Compute the analitical sum between two oriented points

Definition at line 105 of file point.h.

Point2D operator+ ( const Point2D first,
const Point2D last 
) [inline]

Compute the sum between two points

Definition at line 97 of file point.h.

OrientedPoint2D operator- ( const OrientedPoint2D first,
const OrientedPoint2D last 
) [inline]

Compute the analitical difference between two oriented points

Definition at line 101 of file point.h.

Point2D operator- ( const Point2D first,
const Point2D last 
) [inline]

Compute the difference between two points

Definition at line 93 of file point.h.

std::ostream& operator<< ( std::ostream &  out,
const OrientedPoint2D point 
) [inline]

Print the OrientedPoint2D

Definition at line 125 of file point.h.

std::ostream& operator<< ( std::ostream &  out,
const Point2D point 
) [inline]

Print the Point2D

Definition at line 121 of file point.h.

double rad2deg ( double  _angle  )  [inline]

Simple function for converting radians into degrees

Definition at line 86 of file point.h.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


flirtlib
Author(s): Bhaskara Marthi, Gian Diego Tipaldi
autogenerated on Fri Jan 11 11:15:41 2013