#include <PointAverage.h>
Public Methods | |
PointAverage () | |
initializer. More... | |
void | operator() (Coordinate &p) |
accumulator for use in stl loops. More... | |
Coordinate | result () |
return the average as a Coordinate. More... | |
Private Attributes | |
GLdouble | xSum |
GLdouble | ySum |
the sum of x coordinates. More... | |
GLdouble | zSum |
the sum of y coordinates. More... | |
size_t | numPoints |
the sum of z coordinates. More... |
Definition at line 24 of file PointAverage.h.
|
initializer.
Definition at line 28 of file PointAverage.h. |
|
accumulator for use in stl loops.
Definition at line 33 of file PointAverage.h. References Coordinate::get_x, Coordinate::get_y, Coordinate::get_z, numPoints, xSum, ySum, and zSum. |
|
return the average as a Coordinate.
Definition at line 42 of file PointAverage.h. |
|
the sum of z coordinates.
Definition at line 51 of file PointAverage.h. Referenced by operator(), PointAverage, and result. |
|
Definition at line 48 of file PointAverage.h. Referenced by operator(), PointAverage, and result. |
|
the sum of x coordinates.
Definition at line 49 of file PointAverage.h. Referenced by operator(), PointAverage, and result. |
|
the sum of y coordinates.
Definition at line 50 of file PointAverage.h. Referenced by operator(), PointAverage, and result. |