summaryrefslogtreecommitdiff
path: root/include/common/geom.h
diff options
context:
space:
mode:
authorpacien2017-11-28 19:01:51 +0100
committerpacien2017-11-28 19:01:51 +0100
commit987835afe8fc5d46cb3a6359ec80c9f035e72801 (patch)
treee93ddebbfc15900f9307df446e420c086f8a2ebd /include/common/geom.h
parentac60669cd3a93312f0ff186055e61a5e3fb5fcdd (diff)
downloadmorpher-987835afe8fc5d46cb3a6359ec80c9f035e72801.tar.gz
Add module spec headers
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'include/common/geom.h')
-rw-r--r--include/common/geom.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/common/geom.h b/include/common/geom.h
new file mode 100644
index 0000000..15a1d57
--- /dev/null
+++ b/include/common/geom.h
@@ -0,0 +1,32 @@
1#ifndef UPEM_MORPHING_GEOM
2#define UPEM_MORPHING_GEOM
3
4/**
5 * File: geom.h
6 */
7
8#include <inttypes.h>
9
10/**
11 * Type: IntVector
12 * An abstract 1-D vector.
13 */
14typedef int32_t IntVector;
15
16/**
17 * Type: CartesianVector
18 * An abstract 2-D vector in cartesian coordinates.
19 */
20typedef struct {
21 IntVector x, y;
22} CartesianVector;
23
24/**
25 * Type: CartesianMapping
26 * A tuple of cartesian vectors representing a mapping.
27 */
28typedef struct {
29 CartesianVector origin, target;
30} CartesianMapping;
31
32#endif