4#define _USE_MATH_DEFINES
11 const glm::mat4& clipToLocal,
12 const glm::vec4& clipPosition,
13 const float localRadius);
15 COGSCORE_DLL_API
float sphereSectorGeometricDistancePredicate(
const glm::vec2 screenSpaceRadii,
16 const glm::vec2 viewportSize,
17 const float distancePixelTolerance,
18 const float minSectors,
19 const float maxSectors);
21 COGSCORE_DLL_API
float sphereSectorGeometricAreaPredicate(
const glm::vec2 screenSpaceRadii,
22 const glm::vec2 viewportSize,
23 const float areaPixelTolerance,
24 const float minSectors,
25 const float maxSectors);
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
COGSCORE_DLL_API glm::vec2 localSphereRadiusInScreenSpace(const glm::mat4 &localToClip, const glm::mat4 &clipToLocal, const glm::vec4 &clipPosition, const float localRadius)
Given a screen space reference position and a local space radius, find the corresponding screen space...