Use an extra vertex radial with missing data to prevent stretching

This commit is contained in:
Dan Paulat 2024-10-02 05:56:27 -05:00
parent a548497767
commit fe4a324a04
3 changed files with 89 additions and 8 deletions

View file

@ -3,6 +3,8 @@
#include <string>
#include <vector>
#include <units/angle.h>
namespace scwx
{
namespace common
@ -46,6 +48,17 @@ enum class DistanceType
Miles
};
/**
* Calculate the absolute angle delta between two angles.
*
* @param [in] angle1 First angle
* @param [in] angle2 Second angle
*
* @return Absolute angle delta normalized to [0, 360)
*/
units::degrees<float> GetAngleDelta(units::degrees<float> angle1,
units::degrees<float> angle2);
/**
* Calculate the geographic midpoint of a set of coordinates. Uses Method A
* described at http://www.geomidpoint.com/calculation.html.