From da86056179506d70d329e3482f1b4178cf8ab611 Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 2 Dec 2017 15:49:49 +0100 Subject: Add vector cmp. func. Signed-off-by: pacien --- include/common/geom.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/common') diff --git a/include/common/geom.h b/include/common/geom.h index 15a1d57..4445998 100644 --- a/include/common/geom.h +++ b/include/common/geom.h @@ -5,6 +5,7 @@ * File: geom.h */ +#include #include /** @@ -29,4 +30,17 @@ typedef struct { CartesianVector origin, target; } CartesianMapping; +/** + * Function: vector_equals + * Compares two cartesian vectors. + * + * Parameters: + * v1 - the first vector + * v2 - the second vector + * + * Returns: + * T(v1 is equal to v2) + */ +bool vector_equals(CartesianVector v1, CartesianVector v2); + #endif -- cgit v1.2.3