diff options
author | pacien | 2017-12-09 01:59:50 +0100 |
---|---|---|
committer | pacien | 2017-12-09 01:59:50 +0100 |
commit | f910579e66a1495c4c1c97e2b99ea178d9d194ee (patch) | |
tree | ae08661576bf082bfb8a84e29e7b481044d56956 /include/common | |
parent | cc1f6d08e843a2d80e7d536ff71535aaca15f318 (diff) | |
download | morpher-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.h | 12 | ||||
-rw-r--r-- | include/common/matrix.h | 6 |
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 @@ | |||
15 | typedef int32_t IntVector; | 15 | typedef 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 | */ |
21 | typedef struct { | 25 | typedef 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 | */ |
29 | typedef struct { | 37 | typedef 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 | */ |
18 | typedef struct { | 22 | typedef struct { |
19 | IntVector **elements; | 23 | IntVector **elements; |