From 987835afe8fc5d46cb3a6359ec80c9f035e72801 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 28 Nov 2017 19:01:51 +0100 Subject: Add module spec headers Signed-off-by: pacien --- include/common/geom.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/common/geom.h (limited to 'include/common/geom.h') 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 @@ +#ifndef UPEM_MORPHING_GEOM +#define UPEM_MORPHING_GEOM + +/** + * File: geom.h + */ + +#include + +/** + * Type: IntVector + * An abstract 1-D vector. + */ +typedef int32_t IntVector; + +/** + * Type: CartesianVector + * An abstract 2-D vector in cartesian coordinates. + */ +typedef struct { + IntVector x, y; +} CartesianVector; + +/** + * Type: CartesianMapping + * A tuple of cartesian vectors representing a mapping. + */ +typedef struct { + CartesianVector origin, target; +} CartesianMapping; + +#endif -- cgit v1.2.3