From 9cf4190c9b37b34eb38daf3fb89b6a5b6fd21b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wladislav=20=E3=83=B4=E3=83=A9=E3=83=89=20Artsimovich?= Date: Fri, 16 Jun 2023 17:26:30 +0900 Subject: [PATCH] Fix comments of vec2 explaining vec3 math --- include/cglm/struct/vec2.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/cglm/struct/vec2.h b/include/cglm/struct/vec2.h index edf2be1..d8b8f2a 100644 --- a/include/cglm/struct/vec2.h +++ b/include/cglm/struct/vec2.h @@ -258,11 +258,11 @@ glms_vec2_(subs)(vec2s a, float s) { } /*! - * @brief multiply two vector (component-wise multiplication) + * @brief multiply two vectors (component-wise multiplication) * * @param a vector1 * @param b vector2 - * @returns v3 = (a[0] * b[0], a[1] * b[1], a[2] * b[2]) + * @returns result = (a[0] * b[0], a[1] * b[1]) */ CGLM_INLINE vec2s @@ -307,7 +307,7 @@ glms_vec2_(scale_as)(vec2s v, float s) { * * @param[in] a vector 1 * @param[in] b vector 2 - * @returns result = (a[0]/b[0], a[1]/b[1], a[2]/b[2]) + * @returns result = (a[0]/b[0], a[1]/b[1]) */ CGLM_INLINE vec2s @@ -322,7 +322,7 @@ glms_vec2_(div)(vec2s a, vec2s b) { * * @param[in] a vector * @param[in] s scalar - * @returns result = (a[0]/s, a[1]/s, a[2]/s) + * @returns result = (a[0]/s, a[1]/s) */ CGLM_INLINE vec2s @@ -397,7 +397,7 @@ glms_vec2_(muladds)(vec2s a, float s, vec2s dest) { } /*! - * @brief add max of two vector to result/dest + * @brief add max of two vectors to result/dest * * it applies += operator so dest must be initialized * @@ -413,7 +413,7 @@ glms_vec2_(maxadd)(vec2s a, vec2s b, vec2s dest) { } /*! - * @brief add min of two vector to result/dest + * @brief add min of two vectors to result/dest * * it applies += operator so dest must be initialized *