summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2020-03-09 13:01:11 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2020-03-09 13:03:54 +0100
commitdc58262158b315e9f4bfe76b7555150e06c3e180 (patch)
treefc02206262f7edb764b857b6905ffe39b54f4d46
parent7096376119c0ca2231099e8b7395d4b8e170c96e (diff)
doxygen docs: remove @ender_group and organize eina vectors
Mysterious @ender_group is an invalid doxygen command and I could not find it defined anywhere. I could not infer its purpose either so... removed. Put the Eina Vector 2D and 3D groups in their proper place so they appear with the rest of the Eina basic types.
-rw-r--r--src/lib/eina/eina_matrix.h3
-rw-r--r--src/lib/eina/eina_quad.h1
-rw-r--r--src/lib/eina/eina_vector.h46
3 files changed, 24 insertions, 26 deletions
diff --git a/src/lib/eina/eina_matrix.h b/src/lib/eina/eina_matrix.h
index 201054974b..533609dcb0 100644
--- a/src/lib/eina/eina_matrix.h
+++ b/src/lib/eina/eina_matrix.h
@@ -22,9 +22,6 @@
22 22
23/** 23/**
24 * @file 24 * @file
25 * @ender_group{Eina_Matrix_Type}
26 * @ender_group{Eina_Matrix3_F16p16}
27 * @ender_group{Eina_Matrix3}
28 */ 25 */
29 26
30/** 27/**
diff --git a/src/lib/eina/eina_quad.h b/src/lib/eina/eina_quad.h
index c4cdc9fc90..c9257ee164 100644
--- a/src/lib/eina/eina_quad.h
+++ b/src/lib/eina/eina_quad.h
@@ -22,7 +22,6 @@
22 22
23/** 23/**
24 * @file 24 * @file
25 * @ender_group{Eina_Quad}
26 */ 25 */
27 26
28/** 27/**
diff --git a/src/lib/eina/eina_vector.h b/src/lib/eina/eina_vector.h
index e9ee12d732..13617c22e0 100644
--- a/src/lib/eina/eina_vector.h
+++ b/src/lib/eina/eina_vector.h
@@ -24,42 +24,28 @@
24 24
25/** 25/**
26 * @file 26 * @file
27 * @ender_group{Eina_Vector_Type}
28 * @ender_group{Eina_Vector2}
29 * @ender_group{Eina_Vector3}
30 */ 27 */
31 28
32typedef struct _Eina_Vector2 Eina_Vector2;
33typedef struct _Eina_Vector3 Eina_Vector3;
34
35#define EINA_VECTOR2(x, y) ((Eina_Vector2) {(x), (y)})
36/** 29/**
37 * @} 30 * @addtogroup Eina_Data_Types_Group Data Types
38 * @defgroup Eina_Vector2 Vectors in floating point 31 *
39 * @ingroup Eina_Basic
40 * @brief Vector definition and operations
41 * @{ 32 * @{
42 */ 33 */
43 34
44struct _Eina_Vector2 35typedef struct _Eina_Vector2 Eina_Vector2;
45{ 36typedef struct _Eina_Vector3 Eina_Vector3;
46 double x;
47 double y;
48};
49 37
38#define EINA_VECTOR2(x, y) ((Eina_Vector2) {(x), (y)})
50/** 39/**
51 * @} 40 * @defgroup Eina_Vector2 Floating point vectors in 2D
52 * @defgroup Eina_Vector3 Vectors in floating point 41 * @brief 2D vector definition and operations
53 * @ingroup Eina_Basic
54 * @brief Vector definition and operations
55 * @{ 42 * @{
56 */ 43 */
57 44
58struct _Eina_Vector3 45struct _Eina_Vector2
59{ 46{
60 double x; 47 double x;
61 double y; 48 double y;
62 double z;
63}; 49};
64 50
65/** 51/**
@@ -234,6 +220,20 @@ static inline void eina_vector2_homogeneous_position_transform(Eina_Vector2 *out
234 */ 220 */
235static inline void eina_vector2_homogeneous_direction_transform(Eina_Vector2 *out, const Eina_Matrix3 *m, const Eina_Vector2 *v); 221static inline void eina_vector2_homogeneous_direction_transform(Eina_Vector2 *out, const Eina_Matrix3 *m, const Eina_Vector2 *v);
236 222
223/** @} */
224
225/**
226 * @defgroup Eina_Vector3 Floating point vectors in 3D
227 * @brief 3D vector definition and operations
228 * @{
229 */
230struct _Eina_Vector3
231{
232 double x;
233 double y;
234 double z;
235};
236
237/** 237/**
238 * @brief Set parameters to vector. 238 * @brief Set parameters to vector.
239 * 239 *
@@ -536,6 +536,8 @@ static inline Eina_Bool eina_vector3_triangle_equivalent(Eina_Vector3 *v0, Eina_
536 536
537/** @} */ 537/** @} */
538 538
539/** @} */
540
539#include "eina_inline_vector.x" 541#include "eina_inline_vector.x"
540 542
541#endif 543#endif