OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
coordinateconverter.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWMECHANICS_COORDINATECONVERTER_H
2 #define GAME_MWMECHANICS_COORDINATECONVERTER_H
3 
6 
7 namespace ESM
8 {
9  struct Cell;
10 }
11 
12 namespace MWMechanics
13 {
16  {
17  public:
18  CoordinateConverter(const ESM::Cell* cell);
19 
21  void toWorld(ESM::Pathgrid::Point& point);
22 
24  void toWorld(osg::Vec3f& point);
25 
27  void toLocal(osg::Vec3f& point);
28 
29  osg::Vec3f toLocalVec3(const ESM::Pathgrid::Point& point);
30 
31  private:
32  int mCellX;
33  int mCellY;
34  };
35 }
36 
37 #endif
void toLocal(osg::Vec3f &point)
in-place conversion from world to local
Definition: coordinateconverter.cpp:30
CoordinateConverter(const ESM::Cell *cell)
Definition: coordinateconverter.cpp:8
int mCellX
Definition: coordinateconverter.hpp:32
osg::Vec3f toLocalVec3(const ESM::Pathgrid::Point &point)
Definition: coordinateconverter.cpp:36
int mCellY
Definition: coordinateconverter.hpp:33
Definition: loadcell.hpp:64
Definition: loadpgrd.hpp:30
void toWorld(ESM::Pathgrid::Point &point)
in-place conversion from local to world
Definition: coordinateconverter.cpp:18
convert coordinates between world and local cell
Definition: coordinateconverter.hpp:15