diff options
Diffstat (limited to 'src/morpher')
-rw-r--r-- | src/morpher/matrix.c | 7 | ||||
-rw-r--r-- | src/morpher/morphing.c | 7 | ||||
-rw-r--r-- | src/morpher/quadrilateral.c | 7 | ||||
-rw-r--r-- | src/morpher/trianglemap.c | 7 |
4 files changed, 28 insertions, 0 deletions
diff --git a/src/morpher/matrix.c b/src/morpher/matrix.c index 2fe1193..564137d 100644 --- a/src/morpher/matrix.c +++ b/src/morpher/matrix.c | |||
@@ -1,5 +1,12 @@ | |||
1 | #include "morpher/matrix.h" | 1 | #include "morpher/matrix.h" |
2 | 2 | ||
3 | /** | ||
4 | * File: matrix.c | ||
5 | * | ||
6 | * Author: | ||
7 | * Pacien TRAN-GIRARD | ||
8 | */ | ||
9 | |||
3 | IntVector matrix_int_det2(IntVector u11, IntVector u12, | 10 | IntVector matrix_int_det2(IntVector u11, IntVector u12, |
4 | IntVector u21, IntVector u22) { | 11 | IntVector u21, IntVector u22) { |
5 | 12 | ||
diff --git a/src/morpher/morphing.c b/src/morpher/morphing.c index 7df3839..39f1146 100644 --- a/src/morpher/morphing.c +++ b/src/morpher/morphing.c | |||
@@ -2,6 +2,13 @@ | |||
2 | #include <malloc.h> | 2 | #include <malloc.h> |
3 | #include "common/mem.h" | 3 | #include "common/mem.h" |
4 | 4 | ||
5 | /** | ||
6 | * File: morphing.c | ||
7 | * | ||
8 | * Author: | ||
9 | * Pacien TRAN-GIRARD | ||
10 | */ | ||
11 | |||
5 | static inline TriangleMap *init_trianglemap(IntVector width, IntVector height) { | 12 | static inline TriangleMap *init_trianglemap(IntVector width, IntVector height) { |
6 | TriangleMap *bottom_left = trianglemap_create(m(0, 0), m(0, height), m(width, height)); | 13 | TriangleMap *bottom_left = trianglemap_create(m(0, 0), m(0, height), m(width, height)); |
7 | TriangleMap *top_right = trianglemap_create(m(0, 0), m(width, height), m(width, 0)); | 14 | TriangleMap *top_right = trianglemap_create(m(0, 0), m(width, height), m(width, 0)); |
diff --git a/src/morpher/quadrilateral.c b/src/morpher/quadrilateral.c index d5c64b0..4a0dc27 100644 --- a/src/morpher/quadrilateral.c +++ b/src/morpher/quadrilateral.c | |||
@@ -3,6 +3,13 @@ | |||
3 | #include <assert.h> | 3 | #include <assert.h> |
4 | #include "morpher/matrix.h" | 4 | #include "morpher/matrix.h" |
5 | 5 | ||
6 | /** | ||
7 | * File: quadrilateral.c | ||
8 | * | ||
9 | * Author: | ||
10 | * Pacien TRAN-GIRARD | ||
11 | */ | ||
12 | |||
6 | static inline IntVector p2(IntVector n) { | 13 | static inline IntVector p2(IntVector n) { |
7 | return n * n; | 14 | return n * n; |
8 | } | 15 | } |
diff --git a/src/morpher/trianglemap.c b/src/morpher/trianglemap.c index ad526bc..c261a9c 100644 --- a/src/morpher/trianglemap.c +++ b/src/morpher/trianglemap.c | |||
@@ -4,6 +4,13 @@ | |||
4 | #include "morpher/quadrilateral.h" | 4 | #include "morpher/quadrilateral.h" |
5 | #include "common/mem.h" | 5 | #include "common/mem.h" |
6 | 6 | ||
7 | /** | ||
8 | * File: trianglemap.c | ||
9 | * | ||
10 | * Author: | ||
11 | * Pacien TRAN-GIRARD | ||
12 | */ | ||
13 | |||
7 | static void propagate_delaunay(TriangleMap *start, TriangleMap *neighbor) { | 14 | static void propagate_delaunay(TriangleMap *start, TriangleMap *neighbor) { |
8 | assert(start != NULL && neighbor != NULL); | 15 | assert(start != NULL && neighbor != NULL); |
9 | if (!quadrilateral_is_delaunay(start, neighbor)) { | 16 | if (!quadrilateral_is_delaunay(start, neighbor)) { |