summaryrefslogtreecommitdiff
path: root/app/bin/utility.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-03-19 19:55:58 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-03-19 19:55:58 +0100
commitd1a8285f818eb7e5c3d6a05709ea21a808490b8c (patch)
tree326578f0505cbed07cfe60de530022822dc237ac /app/bin/utility.h
parent16e9630b79f0a7a90c6cedb6781175bb8b337dc1 (diff)
New upstream version 5.1.0upstream/5.1.0
Diffstat (limited to 'app/bin/utility.h')
-rw-r--r--app/bin/utility.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/bin/utility.h b/app/bin/utility.h
index ccf85e4..8666e6b 100644
--- a/app/bin/utility.h
+++ b/app/bin/utility.h
@@ -1,5 +1,5 @@
-/*
- * $Header: /home/dmarkle/xtrkcad-fork-cvs/xtrkcad/app/bin/utility.h,v 1.1 2005-12-07 15:47:39 rc-flyer Exp $
+/** \file utility.h
+ * Prototypes for misc utility functions
*/
/* XTrkCad - Model Railroad CAD
@@ -23,6 +23,8 @@
#ifndef UTILITY_H
#define UTILITY_H
+#include "common.h"
+
#ifndef TRUE
#define TRUE 1
#define FALSE 0
@@ -43,6 +45,8 @@ double min( double a, double b );
#endif
double FindDistance( coOrd p0, coOrd p1 );
double NormalizeAngle( double a );
+double DifferenceBetweenAngles(double a, double b);
+int AngleInRange(double a, double start, double size);
int IsAligned( double a1, double a2 );
double D2R( double D );
double R2D( double R );