OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Functions
OutdoorTerrain.h File Reference
#include <array>
#include "Library/Geometry/Point.h"
#include "Library/Image/Image.h"
#include "Engine/Data/TileEnums.h"

Classes

class  OutdoorTerrain
 
struct  OutdoorTerrain::TileGeometry
 

Functions

Vec2i gridToWorld (Pointi gridPos)
 
Pointi worldToGrid (const Vec3f &worldPos)
 

Function Documentation

◆ gridToWorld()

Vec2i gridToWorld ( Pointi  gridPos)
inline

A note on grid coordinates. In grid coordinates Y-axis points south (down on the minimap), X-axis points east (right on the minimap), (0, 0) is NW (top-left) corner of the map.

Parameters
gridPosGrid coordinates.
Returns
World coordinates of the grid cell's NW (top-left on the minimap) corner.
Original binary offset:
0x0047F469, 0x0047F476

◆ worldToGrid()

Pointi worldToGrid ( const Vec3f worldPos)
inline

A note on world coordinates. Y-axis points north (up on the minimap), X-axis points east (right on the minimap), (0, 0) is in the center of the map.

Parameters
worldPosPosition in world coordinates.
Returns
Grid cell coordinates that worldPos is in.
Original binary offset:
0x0047F44B, 0x0047F458