summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_vector.h')
-rw-r--r--src/lib/eina/eina_vector.h48
1 files changed, 25 insertions, 23 deletions
diff --git a/src/lib/eina/eina_vector.h b/src/lib/eina/eina_vector.h
index e9ee12d732..998879b099 100644
--- a/src/lib/eina/eina_vector.h
+++ b/src/lib/eina/eina_vector.h
@@ -24,42 +24,28 @@
/**
* @file
- * @ender_group{Eina_Vector_Type}
- * @ender_group{Eina_Vector2}
- * @ender_group{Eina_Vector3}
*/
-typedef struct _Eina_Vector2 Eina_Vector2;
-typedef struct _Eina_Vector3 Eina_Vector3;
-
-#define EINA_VECTOR2(x, y) ((Eina_Vector2) {(x), (y)})
/**
- * @}
- * @defgroup Eina_Vector2 Vectors in floating point
- * @ingroup Eina_Basic
- * @brief Vector definition and operations
+ * @addtogroup Eina_Data_Types_Group Data Types
+ *
* @{
*/
-struct _Eina_Vector2
-{
- double x;
- double y;
-};
-
/**
- * @}
- * @defgroup Eina_Vector3 Vectors in floating point
- * @ingroup Eina_Basic
- * @brief Vector definition and operations
+ * @defgroup Eina_Vector2 Floating point vectors in 2D
+ * @brief 2D vector definition and operations
* @{
*/
-struct _Eina_Vector3
+typedef struct _Eina_Vector2 Eina_Vector2;
+typedef struct _Eina_Vector3 Eina_Vector3;
+
+#define EINA_VECTOR2(x, y) ((Eina_Vector2) {(x), (y)})
+struct _Eina_Vector2
{
double x;
double y;
- double z;
};
/**
@@ -234,6 +220,20 @@ static inline void eina_vector2_homogeneous_position_transform(Eina_Vector2 *out
*/
static inline void eina_vector2_homogeneous_direction_transform(Eina_Vector2 *out, const Eina_Matrix3 *m, const Eina_Vector2 *v);
+/** @} */
+
+/**
+ * @defgroup Eina_Vector3 Floating point vectors in 3D
+ * @brief 3D vector definition and operations
+ * @{
+ */
+struct _Eina_Vector3
+{
+ double x;
+ double y;
+ double z;
+};
+
/**
* @brief Set parameters to vector.
*
@@ -536,6 +536,8 @@ static inline Eina_Bool eina_vector3_triangle_equivalent(Eina_Vector3 *v0, Eina_
/** @} */
+/** @} */
+
#include "eina_inline_vector.x"
#endif