summaryrefslogtreecommitdiff
path: root/include/common/geom.h
blob: 15a1d5701001c6e8b5ebf179a02864b23cf74ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef UPEM_MORPHING_GEOM
#define UPEM_MORPHING_GEOM

/**
 * File: geom.h
 */

#include <inttypes.h>

/**
 * 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