Public Types | Public Member Functions | Public Attributes | List of all members
Point Class Reference

Simple point class. More...

#include <point.h>

Inheritance diagram for Point:
Inheritance graph
[legend]

Public Types

typedef boost::shared_ptr< PointPtr
 

Public Member Functions

double angle ()
 
double euclideanDistance (const Point::Ptr p2)
 
double euclideanDistance (const Point p2)
 
double module ()
 
Pointoperator+= (const Point &rhs)
 Overload += operator to allow class addition. More...
 
ostream & operator<< (ostream &o)
 
 Point ()
 
void scale (double val)
 Scale all point values by a factor. More...
 
void setZero ()
 Set all the point fields to zero. More...
 
Vector2d toVector2d ()
 

Public Attributes

double n
 auxiliary identifier More...
 
double ni
 auxiliary identifier 2 More...
 
double r
 r coordinate (Polar) More...
 
double t
 t coordinate (Polar) More...
 
double x
 x coordinate (Cartesian) More...
 
double y
 y coordinate (Cartesian) More...
 
double z
 z coordinate (Cartesian) More...
 

Detailed Description

Simple point class.

Definition at line 53 of file point.h.

Member Typedef Documentation

typedef boost::shared_ptr<Point> Point::Ptr

Definition at line 51 of file gnn.cpp.

Constructor & Destructor Documentation

Point::Point ( )

Definition at line 34 of file point.cpp.

Member Function Documentation

double Point::angle ( )
inline

Definition at line 70 of file gnn.cpp.

double Point::euclideanDistance ( const Point::Ptr  p2)
inline

Definition at line 55 of file gnn.cpp.

double Point::euclideanDistance ( const Point  p2)
inline

Definition at line 60 of file gnn.cpp.

double Point::module ( )
inline

Definition at line 65 of file gnn.cpp.

Point & Point::operator+= ( const Point rhs)

Overload += operator to allow class addition.

Definition at line 50 of file point.cpp.

ostream & Point::operator<< ( ostream &  o)

Definition at line 80 of file point.cpp.

void Point::scale ( double  val)

Scale all point values by a factor.

Parameters
valscale factor

Definition at line 61 of file point.cpp.

void Point::setZero ( )

Set all the point fields to zero.

Definition at line 39 of file point.cpp.

Vector2d Point::toVector2d ( )

Definition at line 70 of file point.cpp.

Member Data Documentation

double Point::n

auxiliary identifier

Definition at line 89 of file point.h.

double Point::ni

auxiliary identifier 2

Definition at line 91 of file point.h.

double Point::r

r coordinate (Polar)

Definition at line 85 of file point.h.

double Point::t

t coordinate (Polar)

Definition at line 87 of file point.h.

double Point::x

x coordinate (Cartesian)

Definition at line 79 of file point.h.

double Point::y

y coordinate (Cartesian)

Definition at line 81 of file point.h.

double Point::z

z coordinate (Cartesian)

Definition at line 83 of file point.h.


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


mtt
Author(s): Jorge Almeida
autogenerated on Mon Mar 2 2015 01:32:18