summaryrefslogtreecommitdiff
path: root/src/map_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map_math.h')
-rw-r--r--src/map_math.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map_math.h b/src/map_math.h
index 5643b98..b7c6c99 100644
--- a/src/map_math.h
+++ b/src/map_math.h
@@ -24,7 +24,19 @@
#ifndef _MAP_MATH_H_
#define _MAP_MATH_H_
+typedef enum {
+ OVERLAP_FULL,
+ OVERLAP_NONE,
+ OVERLAP_PARTIAL
+} EOverlapType;
+
gboolean map_math_screenpoint_in_screenrect(screenpoint_t* pPt, screenrect_t* pRect);
gboolean map_math_maprects_equal(maprect_t* pA, maprect_t* pB);
+EOverlapType map_rect_a_overlap_type_with_rect_b(const maprect_t* pA, const maprect_t* pB);
+gboolean map_rects_overlap(const maprect_t* p1, const maprect_t* p2);
+
+void map_math_simplify_pointstring(const GArray* pInput, gdouble fTolerance, GArray* pOutput);
+gdouble map_math_point_distance_squared_from_line(mappoint_t* pHitPoint, mappoint_t* pPoint1, mappoint_t* pPoint2);
+
#endif