summaryrefslogtreecommitdiff
path: root/include/common
diff options
context:
space:
mode:
authorpacien2017-12-09 01:59:50 +0100
committerpacien2017-12-09 01:59:50 +0100
commitf910579e66a1495c4c1c97e2b99ea178d9d194ee (patch)
treeae08661576bf082bfb8a84e29e7b481044d56956 /include/common
parentcc1f6d08e843a2d80e7d536ff71535aaca15f318 (diff)
downloadmorpher-f910579e66a1495c4c1c97e2b99ea178d9d194ee.tar.gz
Add proper struct documentation
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'include/common')
-rw-r--r--include/common/geom.h12
-rw-r--r--include/common/matrix.h6
2 files changed, 15 insertions, 3 deletions
diff --git a/include/common/geom.h b/include/common/geom.h
index 4445998..a843c76 100644
--- a/include/common/geom.h
+++ b/include/common/geom.h
@@ -15,16 +15,24 @@
15typedef int32_t IntVector; 15typedef int32_t IntVector;
16 16
17/** 17/**
18 * Type: CartesianVector 18 * Struct: CartesianVector
19 * An abstract 2-D vector in cartesian coordinates. 19 * An abstract 2-D vector in cartesian coordinates.
20 *
21 * Fields:
22 * x - the horizontal component
23 * y - the vertical component
20 */ 24 */
21typedef struct { 25typedef struct {
22 IntVector x, y; 26 IntVector x, y;
23} CartesianVector; 27} CartesianVector;
24 28
25/** 29/**
26 * Type: CartesianMapping 30 * Struct: CartesianMapping
27 * A tuple of cartesian vectors representing a mapping. 31 * A tuple of cartesian vectors representing a mapping.
32 *
33 * Fields:
34 * origin - preimage vector
35 * target - image vector
28 */ 36 */
29typedef struct { 37typedef struct {
30 CartesianVector origin, target; 38 CartesianVector origin, target;
diff --git a/include/common/matrix.h b/include/common/matrix.h
index 726a8ab..fe4a12a 100644
--- a/include/common/matrix.h
+++ b/include/common/matrix.h
@@ -12,8 +12,12 @@
12#include "geom.h" 12#include "geom.h"
13 13
14/** 14/**
15 * Type: IntSquareMatrix 15 * Struct: IntSquareMatrix
16 * Represents a square integer matrix. 16 * Represents a square integer matrix.
17 *
18 * Fields:
19 * **elements - NULL-terminated array of element pointers
20 * dim - dimension
17 */ 21 */
18typedef struct { 22typedef struct {
19 IntVector **elements; 23 IntVector **elements;