gwnavgeneration/generator/generatorintegercoords.h Source File
Go to the documentation of this file.
14 class GeneratorSystem;
16 class GeneratorIntegerCoords
21 GeneratorIntegerCoords();
23 void Init(
KyFloat32 normalizedRasterPrecision);
25 bool IsTriangleTooBig(const Vec3i& A, const Vec3i& B, const Vec3i& C) const;
27 bool AreTriangleCoordinatesValid(const Vec3f& A, const Vec3f& B, const Vec3f& C) const;
29 bool IsCoordinateValid(const Vec3f& pos) const;
33 return IntCoordSystem::IntToNavigation_Dist(intValue, m_normalizedRasterPrecision);
38 return IntCoordSystem::NavigationToInt_Dist(coordInMeter, m_normalizedRasterPrecision);
41 void IntToMeter_Pos(
const Vec2i& intPos, Vec2f& pos)
const
43 pos.x = IntToMeter_Dist(intPos.x);
44 pos.y = IntToMeter_Dist(intPos.y);
47 void IntToMeter_Pos(
const Vec3i& intPos, Vec3f& pos)
const
49 pos.x = IntToMeter_Dist(intPos.x);
50 pos.y = IntToMeter_Dist(intPos.y);
51 pos.z = IntToMeter_Dist(intPos.z);
54 void MeterToInt_Pos(
const Vec2f& pos, Vec2i& intPos)
const
56 intPos.x = MeterToInt_Dist(pos.x);
57 intPos.y = MeterToInt_Dist(pos.y);
60 void MeterToInt_Pos(
const Vec3f& pos, Vec3i& intPos)
const
62 intPos.x = MeterToInt_Dist(pos.x);
63 intPos.y = MeterToInt_Dist(pos.y);
64 intPos.z = MeterToInt_Dist(pos.z);
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
float KyFloat32
float
Definition: types.h:32