#include <Geometry.h>
Public Member Functions | |
SetOfPoints () | |
void | add (V x, V y) |
void | add (Vector2< V > newPoint) |
void | init () |
double | linearRegression (Line &line) |
Private Attributes | |
Vector2< V > | points [maxNumberOfPoints] |
int | numberOfPoints |
Definition at line 154 of file Geometry.h.
Geometry::SetOfPoints< V, maxNumberOfPoints >::SetOfPoints | ( | ) | [inline] |
Constructor
Definition at line 158 of file Geometry.h.
References Geometry::SetOfPoints< V, maxNumberOfPoints >::init().
void Geometry::SetOfPoints< V, maxNumberOfPoints >::add | ( | Vector2< V > | newPoint | ) | [inline] |
Definition at line 166 of file Geometry.h.
References Geometry::SetOfPoints< V, maxNumberOfPoints >::numberOfPoints, and Geometry::SetOfPoints< V, maxNumberOfPoints >::points.
void Geometry::SetOfPoints< V, maxNumberOfPoints >::add | ( | V | x, | |
V | y | |||
) | [inline] |
Definition at line 159 of file Geometry.h.
References Geometry::SetOfPoints< V, maxNumberOfPoints >::numberOfPoints, and Geometry::SetOfPoints< V, maxNumberOfPoints >::points.
void Geometry::SetOfPoints< V, maxNumberOfPoints >::init | ( | ) | [inline] |
Definition at line 173 of file Geometry.h.
References Geometry::SetOfPoints< V, maxNumberOfPoints >::numberOfPoints.
Referenced by Geometry::SetOfPoints< V, maxNumberOfPoints >::SetOfPoints().
double Geometry::SetOfPoints< V, maxNumberOfPoints >::linearRegression | ( | Line & | line | ) | [inline] |
Definition at line 175 of file Geometry.h.
References Geometry::Line::base, Geometry::Line::direction, Geometry::SetOfPoints< V, maxNumberOfPoints >::numberOfPoints, Geometry::SetOfPoints< V, maxNumberOfPoints >::points, Vector2< V >::x, and Vector2< V >::y.
int Geometry::SetOfPoints< V, maxNumberOfPoints >::numberOfPoints [private] |
Definition at line 222 of file Geometry.h.
Referenced by Geometry::SetOfPoints< V, maxNumberOfPoints >::add(), Geometry::SetOfPoints< V, maxNumberOfPoints >::init(), and Geometry::SetOfPoints< V, maxNumberOfPoints >::linearRegression().
Vector2<V> Geometry::SetOfPoints< V, maxNumberOfPoints >::points[maxNumberOfPoints] [private] |
Definition at line 221 of file Geometry.h.
Referenced by Geometry::SetOfPoints< V, maxNumberOfPoints >::add(), and Geometry::SetOfPoints< V, maxNumberOfPoints >::linearRegression().