mirror of
https://github.com/Hizenberg469/BPIT-ATTENDANCE.git
synced 2026-04-19 17:52:25 +03:00
31 lines
440 B
C
31 lines
440 B
C
#ifndef __AUTH__
|
|
#define __AUTH__
|
|
|
|
#ifndef _MATH_H_
|
|
#include <math.h>
|
|
#endif
|
|
|
|
#ifndef _STDBOOL_H
|
|
#include <stdbool.h>
|
|
#endif
|
|
|
|
#define ld long double
|
|
#define pwr2(x) (x * x)
|
|
|
|
ld
|
|
sq_root(ld x);
|
|
|
|
ld
|
|
toRadians( ld degree );
|
|
|
|
ld
|
|
orthodromic_distance(ld stu_lat, ld stu_long, ld teach_lat, ld teach_long);
|
|
|
|
ld
|
|
altitude_difference(ld teach_alti, ld stu_alti);
|
|
|
|
bool
|
|
check_range(ld dist, ld alti);
|
|
|
|
#endif // __AUTH__
|