Base class for direction set.
More...
#include <JOmega2D.hh>
|
int | find (const JAngle2D &dir) const |
| Get index of direction closest to given direction. More...
|
|
Base class for direction set.
Definition at line 28 of file JOmega2D.hh.
int JGEOMETRY2D::JOmega2D_t::find |
( |
const JAngle2D & |
dir | ) |
const |
|
inline |
Get index of direction closest to given direction.
- Parameters
-
- Returns
- index (-1 if error)
Definition at line 37 of file JOmega2D.hh.
42 for (const_iterator i = this->begin(); i != this->end(); ++i) {
44 const double x = dir.
getDot(*i);
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
double getDot(const JAngle2D &angle) const
Get dot product.
The documentation for this struct was generated from the following file: