mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:20:06 +00:00
Basic placefile lines rendering
Desired to make the line styling look more like warning boxes
This commit is contained in:
parent
e3c6850a1e
commit
c85e4cef58
6 changed files with 487 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <GeographicLib/Geodesic.hpp>
|
||||
#include <units/angle.h>
|
||||
#include <units/length.h>
|
||||
|
||||
namespace scwx
|
||||
|
|
@ -19,6 +20,19 @@ namespace GeographicLib
|
|||
*/
|
||||
const ::GeographicLib::Geodesic& DefaultGeodesic();
|
||||
|
||||
/**
|
||||
* Get the angle between two points.
|
||||
*
|
||||
* @param [in] lat1 latitude of point 1 (degrees)
|
||||
* @param [in] lon1 longitude of point 1 (degrees)
|
||||
* @param [in] lat2 latitude of point 2 (degrees)
|
||||
* @param [in] lon2 longitude of point 2 (degrees)
|
||||
*
|
||||
* @return angle between point 1 and point 2
|
||||
*/
|
||||
units::angle::degrees<double>
|
||||
GetAngle(double lat1, double lon1, double lat2, double lon2);
|
||||
|
||||
/**
|
||||
* Get the distance between two points.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue