#pragma once #include #include #include namespace scwx { namespace qt { namespace util { namespace maplibre { units::length::meters GetMapDistance(const QMapLibre::CustomLayerRenderParameters& params); glm::mat4 GetMapMatrix(const QMapLibre::CustomLayerRenderParameters& params); glm::vec2 GetMapScale(const QMapLibre::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& vertices, const glm::vec2& point); glm::vec2 LatLongToScreenCoordinate(const QMapLibre::Coordinate& coordinate); } // namespace maplibre } // namespace util } // namespace qt } // namespace scwx