mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:20:06 +00:00
Refactoring map and ImGui functions from hover text
This commit is contained in:
parent
5bb5093579
commit
2c3de1a28f
7 changed files with 192 additions and 89 deletions
|
|
@ -17,6 +17,18 @@ units::length::meters<double>
|
|||
GetMapDistance(const QMapLibreGL::CustomLayerRenderParameters& params);
|
||||
glm::mat4 GetMapMatrix(const QMapLibreGL::CustomLayerRenderParameters& params);
|
||||
glm::vec2 GetMapScale(const QMapLibreGL::CustomLayerRenderParameters& params);
|
||||
|
||||
/**
|
||||
* @brief Determine whether a point lies within a polygon
|
||||
*
|
||||
* @param [in] vertices Counterclockwise vertices
|
||||
* @param [in] point Point to test
|
||||
*
|
||||
* @return Whether the point lies within the polygon
|
||||
*/
|
||||
bool IsPointInPolygon(const std::vector<glm::vec2>& vertices,
|
||||
const glm::vec2& point);
|
||||
|
||||
glm::vec2 LatLongToScreenCoordinate(const QMapLibreGL::Coordinate& coordinate);
|
||||
|
||||
} // namespace maplibre
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue