mirror of
https://github.com/Hizenberg469/BPIT-ATTENDANCE.git
synced 2026-04-20 02:02:25 +03:00
initial commit
This commit is contained in:
30
vansh/Alti_implemented/auth.h
Normal file
30
vansh/Alti_implemented/auth.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#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__
|
||||
Reference in New Issue
Block a user