Point Class Reference

Simple point class. More...

#include <point.h>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

Simple point class.

Definition at line 53 of file point.h.


Constructor & Destructor Documentation

Point::Point (  ) 

Definition at line 34 of file point.cpp.


Member Function Documentation

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:
val scale 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mtt
Author(s): Jorge Almeida
autogenerated on Wed Jul 23 04:34:58 2014