gwnavgeneration/raster/rastertriangle.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_RasterTriangle_H
10 #define GwNavGen_RasterTriangle_H
30 bool Setup(
const Triangle3i& triangle,
KyFloat32 rasterPrecisionInMeter);
32 bool Setup(
const RasterPoint& rpA,
const RasterPoint& rpB,
const RasterPoint& rpC,
KyFloat32 rasterPrecisionInMeter);
34 KY_INLINE
KyFloat32 meterZ(Coord x, Coord y)
36 KyFloat32 meter_AMx = IntCoordSystem::IntToNavigation_Dist(x - iA.x, m_rasterPrecisionInMeter);
37 KyFloat32 meter_AMy = IntCoordSystem::IntToNavigation_Dist(y - iA.y, m_rasterPrecisionInMeter);
38 return A.z - (meter_AMx * N.x + meter_AMy * N.y) * inv_Nz;
41 KyFloat32 meterStepZ_AlongX(Coord dx) {
return dz_on_dx * IntCoordSystem::IntToNavigation_Dist(dx, m_rasterPrecisionInMeter); }
44 bool IsInside2d(
const Vec2i& M)
const {
return M.IsInsideTriangle(iA, iB, iC); }
47 bool IsInside2d_NoColinear(
const Vec2i& M)
const {
return M.IsInsideNotColinearTriangle(iA, iB, iC); }
50 bool IsStrictlyInside2d(
const Vec2i& M)
const {
return M.IsStrictlyInsideTriangle(iA, iB, iC); }
Definition: gamekitcrowddispersion.h:20
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43