From 015e8590755f94a9de2fe9fcbfd9c010b074d042 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sat, 30 Dec 2023 23:11:15 +0300 Subject: [PATCH] fix some doc typos & warnings --- include/cglm/aabb2d.h | 16 ++++++++-------- include/cglm/ivec2.h | 4 ++-- include/cglm/ivec3.h | 4 ++-- include/cglm/ivec4.h | 4 ++-- include/cglm/struct/euler.h | 12 ++++++------ 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/include/cglm/aabb2d.h b/include/cglm/aabb2d.h index d7c6eee..7d8be61 100644 --- a/include/cglm/aabb2d.h +++ b/include/cglm/aabb2d.h @@ -86,8 +86,8 @@ glm_aabb2d_merge(vec2 aabb1[2], vec2 aabb2[2], vec2 dest[2]) { * aabb * * @param[in] aabb bounding aabb 1 - * @param[in] cropaabb crop aabb - * @param[out] dest cropped bounding aabb + * @param[in] cropAabb crop aabb + * @param[out] dest cropped bounding aabb */ CGLM_INLINE void @@ -107,16 +107,16 @@ glm_aabb2d_crop(vec2 aabb[2], vec2 cropAabb[2], vec2 dest[2]) { * aabb * * @param[in] aabb bounding aabb - * @param[in] cropaabb crop aabb - * @param[in] clampaabb miniumum aabb - * @param[out] dest cropped bounding aabb + * @param[in] cropAabb crop aabb + * @param[in] clampAabb miniumum aabb + * @param[out] dest cropped bounding aabb */ CGLM_INLINE void glm_aabb2d_crop_until(vec2 aabb[2], - vec2 cropAabb[2], - vec2 clampAabb[2], - vec2 dest[2]) { + vec2 cropAabb[2], + vec2 clampAabb[2], + vec2 dest[2]) { glm_aabb2d_crop(aabb, cropAabb, dest); glm_aabb2d_merge(clampAabb, dest, dest); } diff --git a/include/cglm/ivec2.h b/include/cglm/ivec2.h index c4de4cb..3178514 100644 --- a/include/cglm/ivec2.h +++ b/include/cglm/ivec2.h @@ -360,7 +360,7 @@ glm_ivec2_subsubs(ivec2 a, int s, ivec2 dest) { * applies -= operator so dest must be initialized * * @param[in] a vector - * @param[in] s scalar + * @param[in] b scalar * @param[out] dest dest -= (a + b) */ CGLM_INLINE @@ -392,7 +392,7 @@ glm_ivec2_addsubs(ivec2 a, int s, ivec2 dest) { * applies -= operator so dest must be initialized * * @param[in] a vector - * @param[in] s scalar + * @param[in] b scalar * @param[out] dest dest -= (a * b) */ CGLM_INLINE diff --git a/include/cglm/ivec3.h b/include/cglm/ivec3.h index 4eac03a..1962ecd 100644 --- a/include/cglm/ivec3.h +++ b/include/cglm/ivec3.h @@ -378,7 +378,7 @@ glm_ivec3_subsubs(ivec3 a, int s, ivec3 dest) { * applies -= operator so dest must be initialized * * @param[in] a vector - * @param[in] s scalar + * @param[in] b scalar * @param[out] dest dest -= (a + b) */ CGLM_INLINE @@ -412,7 +412,7 @@ glm_ivec3_addsubs(ivec3 a, int s, ivec3 dest) { * applies -= operator so dest must be initialized * * @param[in] a vector - * @param[in] s scalar + * @param[in] b scalar * @param[out] dest dest -= (a * b) */ CGLM_INLINE diff --git a/include/cglm/ivec4.h b/include/cglm/ivec4.h index e23b19b..2cc0345 100644 --- a/include/cglm/ivec4.h +++ b/include/cglm/ivec4.h @@ -394,7 +394,7 @@ glm_ivec4_subsubs(ivec4 a, int s, ivec4 dest) { * applies -= operator so dest must be initialized * * @param[in] a vector - * @param[in] s scalar + * @param[in] b scalar * @param[out] dest dest -= (a + b) */ CGLM_INLINE @@ -430,7 +430,7 @@ glm_ivec4_addsubs(ivec4 a, int s, ivec4 dest) { * applies -= operator so dest must be initialized * * @param[in] a vector - * @param[in] s scalar + * @param[in] b scalar * @param[out] dest dest -= (a * b) */ CGLM_INLINE diff --git a/include/cglm/struct/euler.h b/include/cglm/struct/euler.h index 3395745..f7a7e1d 100644 --- a/include/cglm/struct/euler.h +++ b/include/cglm/struct/euler.h @@ -160,7 +160,7 @@ glms_euler_by_order(vec3s angles, glm_euler_seq ord) { * rotations in x y z order (roll pitch yaw) * * @param[in] angles angles x y z (radians) - * @param[out] dest quaternion + * @returns quaternion */ CGLM_INLINE versors @@ -175,7 +175,7 @@ glms_euler_xyz_quat(vec3s angles) { * rotations in x z y order (roll yaw pitch) * * @param[in] angles angles x y z (radians) - * @param[out] dest quaternion + * @returns quaternion */ CGLM_INLINE versors @@ -190,7 +190,7 @@ glms_euler_xzy_quat(vec3s angles) { * rotations in y x z order (pitch roll yaw) * * @param[in] angles angles x y z (radians) - * @param[out] dest quaternion + * @returns quaternion */ CGLM_INLINE versors @@ -205,7 +205,7 @@ glms_euler_yxz_quat(vec3s angles) { * rotations in y z x order (pitch yaw roll) * * @param[in] angles angles x y z (radians) - * @param[out] dest quaternion + * @returns quaternion */ CGLM_INLINE versors @@ -220,7 +220,7 @@ glms_euler_yzx_quat(vec3s angles) { * rotations in z x y order (yaw roll pitch) * * @param[in] angles angles x y z (radians) - * @param[out] dest quaternion + * @returns quaternion */ CGLM_INLINE versors @@ -235,7 +235,7 @@ glms_euler_zxy_quat(vec3s angles) { * rotations in z y x order (yaw pitch roll) * * @param[in] angles angles x y z (radians) - * @param[out] dest quaternion + * @returns quaternion */ CGLM_INLINE versors