summaryrefslogtreecommitdiff
path: root/include/common
diff options
context:
space:
mode:
authorpacien2017-12-02 15:49:49 +0100
committerpacien2017-12-02 15:49:49 +0100
commitda86056179506d70d329e3482f1b4178cf8ab611 (patch)
treec43f321297ac5c4fa93e42b6edc84bdb3b945ee0 /include/common
parent901f42ae84b73ea1baa0b20379021a9ab37250fc (diff)
downloadmorpher-da86056179506d70d329e3482f1b4178cf8ab611.tar.gz
Add vector cmp. func.
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'include/common')
-rw-r--r--include/common/geom.h14
1 files changed, 14 insertions, 0 deletions
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 @@
5 * File: geom.h 5 * File: geom.h
6 */ 6 */
7 7
8#include <stdbool.h>
8#include <inttypes.h> 9#include <inttypes.h>
9 10
10/** 11/**
@@ -29,4 +30,17 @@ typedef struct {
29 CartesianVector origin, target; 30 CartesianVector origin, target;
30} CartesianMapping; 31} CartesianMapping;
31 32
33/**
34 * Function: vector_equals
35 * Compares two cartesian vectors.
36 *
37 * Parameters:
38 * v1 - the first vector
39 * v2 - the second vector
40 *
41 * Returns:
42 * T(v1 is equal to v2)
43 */
44bool vector_equals(CartesianVector v1, CartesianVector v2);
45
32#endif 46#endif