4 #include "VectorMath.h"
27 , LocalNodeId(localNodeId)
31 : CellKey(other.CellKey)
32 , LocalNodeId(other.LocalNodeId)
42 return (lhs.LocalNodeId == rhs.LocalNodeId) &&
43 (lhs.CellKey == rhs.CellKey);
46 inline std::string TiledGraphNodeIdToString(
const TiledGraphNodeId& nodeId)
49 ss << nodeId.CellKey.ToString() <<
":" << nodeId.LocalNodeId;
53 inline TiledGraphNodeId MakeExternalTiledGraphNodeId()
55 return TiledGraphNodeId(Streaming::MortonKey(0), -1);
63 std::size_t h2 = std::hash<int>{}(nodeId.LocalNodeId);
64 return h1 ^ (h2 << 1);
71 : LocalPoint(v3::Zero())
72 , IncidentEdgesOffset(0)
73 , IncidentEdgesCount(0)
78 int incidentEdgesOffset,
79 int incidentEdgesCount
81 : LocalPoint(localPoint)
82 , IncidentEdgesOffset(incidentEdgesOffset)
83 , IncidentEdgesCount(incidentEdgesCount)
87 int IncidentEdgesOffset;
88 int IncidentEdgesCount;
93 return (lhs.LocalPoint == rhs.LocalPoint) &&
94 (lhs.IncidentEdgesOffset == rhs.IncidentEdgesOffset) &&
95 (lhs.IncidentEdgesCount == rhs.IncidentEdgesCount);