gwnavgeneration/generator/generatorintegercoords.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_GeneratorIntegerCoords_H
10 #define GwNavGen_GeneratorIntegerCoords_H
19 class GeneratorSystem;
21 class GeneratorIntegerCoords
26 GeneratorIntegerCoords();
28 void Init(
KyFloat32 normalizedRasterPrecision);
30 bool IsTriangleTooBig(const Vec3f& A, const Vec3f& B, const Vec3f& C) const;
32 bool AreTriangleCoordinatesValid(const Vec3f& A, const Vec3f& B, const Vec3f& C) const;
34 bool IsCoordinateValid(const Vec3f& pos) const;
38 return IntCoordSystem::IntToNavigation_Dist(intValue, m_normalizedRasterPrecision);
43 return IntCoordSystem::NavigationToInt_Dist(coordInMeter, m_normalizedRasterPrecision);
46 void IntToMeter_Pos(
const Vec2i& intPos, Vec2f& pos)
const
48 pos.x = IntToMeter_Dist(intPos.x);
49 pos.y = IntToMeter_Dist(intPos.y);
52 void IntToMeter_Pos(
const Vec3i& intPos, Vec3f& pos)
const
54 pos.x = IntToMeter_Dist(intPos.x);
55 pos.y = IntToMeter_Dist(intPos.y);
56 pos.z = IntToMeter_Dist(intPos.z);
59 void MeterToInt_Pos(
const Vec2f& pos, Vec2i& intPos)
const
61 intPos.x = MeterToInt_Dist(pos.x);
62 intPos.y = MeterToInt_Dist(pos.y);
65 void MeterToInt_Pos(
const Vec3f& pos, Vec3i& intPos)
const
67 intPos.x = MeterToInt_Dist(pos.x);
68 intPos.y = MeterToInt_Dist(pos.y);
69 intPos.z = MeterToInt_Dist(pos.z);
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43