#include <VertexAndAngle.hpp>
Public Member Functions | |
void | ComputeAndSetAngle (double x, double y) |
void | SetVertex (c_vector< double, DIM > *pVertex) |
bool | operator< (const VertexAndAngle &rOther) const |
double | GetAngle () |
c_vector< double, DIM > * | GetVertex () |
Private Attributes | |
c_vector< double, DIM > * | mpVertex |
double | mAngle |
Definition at line 43 of file VertexAndAngle.hpp.
void VertexAndAngle< DIM >::ComputeAndSetAngle | ( | double | x, | |
double | y | |||
) | [inline] |
Compute the polar angle of the point (x,y) in the interval (-PI, PI] and use this to set mAngle.
x | x-coordinate | |
y | y-coordinate |
Definition at line 36 of file VertexAndAngle.cpp.
References VertexAndAngle< DIM >::mAngle.
Referenced by VoronoiTessellation< DIM >::Initialise(), and Face< DIM >::OrderVerticesAntiClockwise().
void VertexAndAngle< DIM >::SetVertex | ( | c_vector< double, DIM > * | pVertex | ) | [inline] |
Set mpVertex.
pVertex | location of the vertex |
Definition at line 70 of file VertexAndAngle.cpp.
References VertexAndAngle< DIM >::mpVertex.
Referenced by VoronoiTessellation< DIM >::Initialise(), and Face< DIM >::OrderVerticesAntiClockwise().
bool VertexAndAngle< DIM >::operator< | ( | const VertexAndAngle< DIM > & | rOther | ) | const [inline] |
Less-than angle comparison operator.
rOther | the VertexAndAngle object to compare to |
Definition at line 88 of file VertexAndAngle.cpp.
References VertexAndAngle< DIM >::mAngle.
double VertexAndAngle< DIM >::GetAngle | ( | ) | [inline] |
Get method for mAngle.
Definition at line 76 of file VertexAndAngle.cpp.
References VertexAndAngle< DIM >::mAngle.
c_vector< double, DIM > * VertexAndAngle< DIM >::GetVertex | ( | ) | [inline] |
Get method for mpVertex.
Definition at line 82 of file VertexAndAngle.cpp.
References VertexAndAngle< DIM >::mpVertex.
c_vector<double, DIM>* VertexAndAngle< DIM >::mpVertex [private] |
Pointer to a vertex.
Definition at line 48 of file VertexAndAngle.hpp.
Referenced by VertexAndAngle< DIM >::GetVertex(), and VertexAndAngle< DIM >::SetVertex().
double VertexAndAngle< DIM >::mAngle [private] |
Polar angle.
Definition at line 51 of file VertexAndAngle.hpp.
Referenced by VertexAndAngle< DIM >::ComputeAndSetAngle(), VertexAndAngle< DIM >::GetAngle(), and VertexAndAngle< DIM >::operator<().