YAPOG  0.0.1
Yet Another Pokemon Online Game
IsometricWorldDrawingPolicy.cpp
Go to the documentation of this file.
4 
5 namespace yap
6 {
9  {
10  }
11 
13  {
14  }
15 
17  const Vector3& worldPosition) const
18  {
19  return Vector2 (
20  (worldPosition.x - worldPosition.y),
21  (-worldPosition.z * 32.0f +
22  (worldPosition.x + worldPosition.y) * .5f));
23  }
24 
26  const ISpatial3& spatial) const
27  {
28  return
29  spatial.GetPosition ().x +
30  spatial.GetPosition ().y;
31  }
32 } // namespace yap