1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

Azel: Mark methods as const.

This commit is contained in:
srcejon
2025-06-04 18:15:59 +01:00
parent 1304926162
commit db9ccd9ca8
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -22,7 +22,7 @@
#include <cmath>
// Calculate cartesian distance between two points
double AzEl::cartDistance(const AzElPoint& a, const AzElPoint& b)
double AzEl::cartDistance(const AzElPoint& a, const AzElPoint& b) const
{
double dx = b.m_cart.m_x - a.m_cart.m_x;
double dy = b.m_cart.m_y - a.m_cart.m_y;
@@ -31,7 +31,7 @@ double AzEl::cartDistance(const AzElPoint& a, const AzElPoint& b)
}
// Calculate vector difference then normalise the result
bool AzEl::normVectorDiff(const AzElCartesian& a, const AzElCartesian& b, AzElCartesian& n)
bool AzEl::normVectorDiff(const AzElCartesian& a, const AzElCartesian& b, AzElCartesian& n) const
{
n.m_x = b.m_x - a.m_x;
n.m_y = b.m_y - a.m_y;