From edb0e29f8a63646667f6ceb485e989c1fd2610f1 Mon Sep 17 00:00:00 2001 From: Kvmilos Date: Sun, 9 Feb 2025 14:57:23 +0100 Subject: [PATCH] unified the singular/plural forms --- glossary/ceil/README.md | 2 +- glossary/clamp/README.md | 6 +++--- glossary/cos/README-ua.md | 21 --------------------- glossary/cos/README-vi.md | 21 --------------------- glossary/cos/README.md | 21 --------------------- glossary/degrees/README.md | 2 +- glossary/equal/README.md | 4 ++-- glossary/exp/README.md | 2 +- glossary/exp2/README.md | 2 +- glossary/floor/README.md | 2 +- glossary/fract/README.md | 2 +- glossary/inversesqrt/README.md | 2 +- glossary/log/README.md | 2 +- glossary/log2/README.md | 2 +- glossary/max/README.md | 4 ++-- glossary/min/README.md | 4 ++-- glossary/mix/README.md | 6 +++--- glossary/mod/README.md | 4 ++-- glossary/pow/README.md | 4 ++-- glossary/radians/README.md | 2 +- glossary/sign/README.md | 2 +- glossary/sqrt/README.md | 2 +- glossary/step/README.md | 2 +- glossary/struct/README.md | 2 +- glossary/tan/README.md | 2 +- 25 files changed, 31 insertions(+), 94 deletions(-) delete mode 100644 glossary/cos/README-ua.md delete mode 100644 glossary/cos/README-vi.md delete mode 100644 glossary/cos/README.md diff --git a/glossary/ceil/README.md b/glossary/ceil/README.md index affed94..614015b 100644 --- a/glossary/ceil/README.md +++ b/glossary/ceil/README.md @@ -10,7 +10,7 @@ vec4 ceil(vec4 x) ``` ### Parameters -```x``` specify the value to evaluate. +```x``` specifies the value to evaluate. ### Description ```ceil()``` returns a value equal to the nearest integer that is greater than or equal to ```x```. diff --git a/glossary/clamp/README.md b/glossary/clamp/README.md index 32013ae..7c815be 100644 --- a/glossary/clamp/README.md +++ b/glossary/clamp/README.md @@ -14,11 +14,11 @@ vec4 clamp(vec4 x, float minVal, float maxVal) ``` ### Parameters -```x``` specify the value to constrain. +```x``` specifies the value to constrain. -```minVal``` specify the lower end of the range into which to constrain x. +```minVal``` specifies the lower end of the range into which to constrain x. -```maxVal``` specify the upper end of the range into which to constrain x. +```maxVal``` specifies the upper end of the range into which to constrain x. ### Description ```clamp()``` returns the value of ```x``` constrained to the range ```minVal``` to ```maxVal```. The returned value is computed as ```min(max(x, minVal), maxVal)```. diff --git a/glossary/cos/README-ua.md b/glossary/cos/README-ua.md deleted file mode 100644 index a79f3c9..0000000 --- a/glossary/cos/README-ua.md +++ /dev/null @@ -1,21 +0,0 @@ -## cos -Повертає косинус параметра - -### Оголошення -```glsl -float cos(float angle) -vec2 cos(vec2 angle) -vec3 cos(vec3 angle) -vec4 cos(vec4 angle) -``` - -### Параметри -**```angle```** — величина в радіанах, косинус якої потрібно повернути. - -### Опис -**```cos()```** повертає тригонометричний косинус кута. - -
- -### Дивіться також -[acos](/glossary/?lan=ua&search=acos), [sin](/glossary/?lan=ua&search=sin), [asin](/glossary/?lan=ua&search=asin), [tan](/glossary/?lan=ua&search=tan), [atan](/glossary/?lan=ua&search=atan), [Розділ 05: Формотворчі функції](/05/?lan=ua) diff --git a/glossary/cos/README-vi.md b/glossary/cos/README-vi.md deleted file mode 100644 index e9d49bd..0000000 --- a/glossary/cos/README-vi.md +++ /dev/null @@ -1,21 +0,0 @@ -## Cos -Tính hàm cosine của 1 góc lượng giác - -### Các phiên bản -```glsl -float cos(float angle) -vec2 cos(vec2 angle) -vec3 cos(vec3 angle) -vec4 cos(vec4 angle) -``` - -### Các tham số -```angle``` góc lượng giác (đơn vị radian) cần tính cosine - -### Mô tả -```cos()``` trả về giá trị cosine tương ứng với góc ```angle``` - -
- -### Tham khảo thêm -[acos](/glossary/?lan=vi&search=acos), [sin](/glossary/?lan=vi&search=sin), [asin](/glossary/?lan=vi&search=asin), [tan](/glossary/?lan=vi&search=tan), [atan](/glossary/?lan=vi&search=atan), [Các hàm số cơ bản (Hàm hình dạng - Shape function)](/05/?lan=vi) diff --git a/glossary/cos/README.md b/glossary/cos/README.md deleted file mode 100644 index a17764c..0000000 --- a/glossary/cos/README.md +++ /dev/null @@ -1,21 +0,0 @@ -## Cos -Return the cosine of the parameter - -### Declaration -```glsl -float cos(float angle) -vec2 cos(vec2 angle) -vec3 cos(vec3 angle) -vec4 cos(vec4 angle) -``` - -### Parameters -```angle``` specify the quantity, in radians, of which to return the cosine. - -### Description -```cos()``` returns the trigonometric cosine of angle. - -
- -### See Also -[acos](/glossary/?search=acos), [sin](/glossary/?search=sin), [asin](/glossary/?search=asin), [tan](/glossary/?search=tan), [atan](/glossary/?search=atan), [Chapter 05: Shaping Functions](/05/) diff --git a/glossary/degrees/README.md b/glossary/degrees/README.md index a782b2b..2fe5a0b 100644 --- a/glossary/degrees/README.md +++ b/glossary/degrees/README.md @@ -10,7 +10,7 @@ vec4 degrees(vec4 radians) ``` ### Parameters -```radians``` specify the quantity, in radians, to be converted to degrees. +```radians``` specifies the quantity, in radians, to be converted to degrees. ### Description ```degrees()``` converts a quantity, specified in radians into degrees. That is, the return value is ```(180.0*radians)/PI``` diff --git a/glossary/equal/README.md b/glossary/equal/README.md index d3bf59f..a9bdf93 100644 --- a/glossary/equal/README.md +++ b/glossary/equal/README.md @@ -13,9 +13,9 @@ bvec4 equal(ivec4 x, ivec4 y) ``` ### Parameters -```x``` Specifies the first vector to be used in the comparison operation. +```x``` specifies the first vector to be used in the comparison operation. -```y``` Specifies the second vector to be used in the comparison operation. +```y``` specifies the second vector to be used in the comparison operation. ### Description ```equal()``` returns a boolean vector in which each element ```i``` is computed as ```x[i] == y[i]```. diff --git a/glossary/exp/README.md b/glossary/exp/README.md index 2f6d42d..d148482 100644 --- a/glossary/exp/README.md +++ b/glossary/exp/README.md @@ -10,7 +10,7 @@ vec4 exp(vec4 x) ``` ### Parameters -```x``` specify the value to exponentiate. +```x``` specifies the value to exponentiate. ### Description ```exp()``` returns the natural exponentiation of ```x```. diff --git a/glossary/exp2/README.md b/glossary/exp2/README.md index 1c508dc..abd2845 100644 --- a/glossary/exp2/README.md +++ b/glossary/exp2/README.md @@ -10,7 +10,7 @@ vec4 exp2(vec4 x) ``` ### Parameters -```x``` specify the value of the power to which 2 will be raised. +```x``` specifies the value of the power to which 2 will be raised. ### Description ```exp2()``` returns 2 raised to the power of ```x```. diff --git a/glossary/floor/README.md b/glossary/floor/README.md index 8b496d0..af7322b 100644 --- a/glossary/floor/README.md +++ b/glossary/floor/README.md @@ -10,7 +10,7 @@ vec4 floor(vec4 x) ``` ### Parameters -```x``` specify the value to evaluate. +```x``` specifies the value to evaluate. ### Description ```floor()``` returns a value equal to the nearest integer that is less than or equal to ```x```. diff --git a/glossary/fract/README.md b/glossary/fract/README.md index 68fd266..47c7345 100644 --- a/glossary/fract/README.md +++ b/glossary/fract/README.md @@ -10,7 +10,7 @@ vec4 fract(vec4 x) ``` ### Parameters -```x``` specify the value to evaluate. +```x``` specifies the value to evaluate. ### Description ```fract()``` returns the fractional part of ```x```. This is calculated as ```x - floor(x)```. diff --git a/glossary/inversesqrt/README.md b/glossary/inversesqrt/README.md index 676278a..c9c76f6 100644 --- a/glossary/inversesqrt/README.md +++ b/glossary/inversesqrt/README.md @@ -10,7 +10,7 @@ vec4 inversesqrt(vec4 x) ``` ### Parameters -```x``` specify the value of which to take the inverse of the square root. +```x``` specifies the value of which to take the inverse of the square root. ### Description ```inversesqrt()``` returns the inverse of the square root of ```x```. diff --git a/glossary/log/README.md b/glossary/log/README.md index 6be29e2..9e5b15b 100644 --- a/glossary/log/README.md +++ b/glossary/log/README.md @@ -10,7 +10,7 @@ vec4 log(vec4 x) ``` ### Parameters -```x``` specify the value of which to take the natural logarithm. +```x``` specifies the value of which to take the natural logarithm. ### Description ```log()``` returns the natural logarithm of ```x```. diff --git a/glossary/log2/README.md b/glossary/log2/README.md index 72856b9..4402c7f 100644 --- a/glossary/log2/README.md +++ b/glossary/log2/README.md @@ -10,7 +10,7 @@ vec4 log2(vec4 x) ``` ### Parameters -```x``` specify the value of which to take the base 2 logarithm. +```x``` specifies the value of which to take the base 2 logarithm. ### Description ```log2()``` returns the base 2 logarithm of ```x```. diff --git a/glossary/max/README.md b/glossary/max/README.md index 56f4da3..920092e 100644 --- a/glossary/max/README.md +++ b/glossary/max/README.md @@ -14,9 +14,9 @@ vec4 max(vec4 x, float y) ``` ### Parameters -```x``` specify the first value to compare. +```x``` specifies the first value to compare. -```y``` specify the second value to compare. +```y``` specifies the second value to compare. ### Description ```max()``` returns the maximum of the two parameters. It returns ```y``` if ```y``` is greater than ```x```, otherwise it returns ```x```. diff --git a/glossary/min/README.md b/glossary/min/README.md index ddc22cf..00205e8 100644 --- a/glossary/min/README.md +++ b/glossary/min/README.md @@ -14,9 +14,9 @@ vec4 min(vec4 x, float y) ``` ### Parameters -```x``` specify the first value to compare. +```x``` specifies the first value to compare. -```y``` specify the second value to compare. +```y``` specifies the second value to compare. ### Description ```min()``` returns the minimum of the two parameters. It returns ```y``` if ```y``` is less than ```x```, otherwise it returns ```x```. diff --git a/glossary/mix/README.md b/glossary/mix/README.md index 85ed5a0..227e7cc 100644 --- a/glossary/mix/README.md +++ b/glossary/mix/README.md @@ -14,11 +14,11 @@ vec4 mix(vec4 x, vec4 y, float a) ``` ### Parameters -```x``` Specify the start of the range in which to interpolate. +```x``` specifies the start of the range in which to interpolate. -```y``` Specify the end of the range in which to interpolate. +```y``` specifies the end of the range in which to interpolate. -```a``` Specify the value to use to interpolate between x and y. +```a``` specifies the value to use to interpolate between x and y. ### Description ```mix()``` performs a linear interpolation between ```x``` and ```y``` using ```a``` to weight between them. The return value is computed as ```x×(1−a)+y×a```. diff --git a/glossary/mod/README.md b/glossary/mod/README.md index 69fdf5a..a11ad8f 100644 --- a/glossary/mod/README.md +++ b/glossary/mod/README.md @@ -14,8 +14,8 @@ vec4 mod(vec4 x, float y) ``` ### Parameters -```x``` specify the value to evaluate. -```y``` specify the value to obtain the modulo of. +```x``` specifies the value to evaluate. +```y``` specifies the value to obtain the modulo of. ### Description ```mod()``` returns the value of ```x``` modulo ```y```. This is computed as ```x - y * floor(x/y)```. diff --git a/glossary/pow/README.md b/glossary/pow/README.md index b7fc9fb..28dda6b 100644 --- a/glossary/pow/README.md +++ b/glossary/pow/README.md @@ -10,9 +10,9 @@ vec4 pow(vec4 x, vec4 y) ``` ### Parameters -```x``` specify the value to raise to the power ```y```. +```x``` specifies the value to raise to the power ```y```. -```y``` specify the power to which to raise ```x```. +```y``` specifies the power to which to raise ```x```. ### Description ```pow()``` returns the value of ```x``` raised to the ```y``` power. diff --git a/glossary/radians/README.md b/glossary/radians/README.md index bf29e72..6a3ffec 100644 --- a/glossary/radians/README.md +++ b/glossary/radians/README.md @@ -10,7 +10,7 @@ vec4 radians(vec4 degrees) ``` ### Parameters -```degrees``` specify the quantity, in degrees, to be converted to radians. +```degrees``` specifies the quantity, in degrees, to be converted to radians. ### Description ```radians()``` converts a quantity, specified in degrees into radians. That is, the return value is ```(PI * degrees)/180```. diff --git a/glossary/sign/README.md b/glossary/sign/README.md index 656f2c4..66b5677 100644 --- a/glossary/sign/README.md +++ b/glossary/sign/README.md @@ -10,7 +10,7 @@ vec4 sign(vec4 x) ``` ### Parameters -```x``` specify the value from which to extract the sign. +```x``` specifies the value from which to extract the sign. ### Description ```sign()``` returns -1.0 if x is less than 0.0, 0.0 if x is equal to 0.0, and +1.0 if x is greater than 0.0. diff --git a/glossary/sqrt/README.md b/glossary/sqrt/README.md index 8895ba3..adf70a8 100644 --- a/glossary/sqrt/README.md +++ b/glossary/sqrt/README.md @@ -10,7 +10,7 @@ vec4 sqrt(vec4 x) ``` ### Parameters -```x``` specify the value of which to take the square root. +```x``` specifies the value of which to take the square root. ### Description ```sqrt()``` returns the square root of ```x```. diff --git a/glossary/step/README.md b/glossary/step/README.md index baf78f5..9af2734 100644 --- a/glossary/step/README.md +++ b/glossary/step/README.md @@ -16,7 +16,7 @@ vec4 step(float edge, vec4 x) ### Parameters ```edge``` specifies the location of the edge of the step function. -```x``` specify the value to be used to generate the step function. +```x``` specifies the value to be used to generate the step function. ### Description ```step()``` generates a step function by comparing ```x``` to ```edge```. diff --git a/glossary/struct/README.md b/glossary/struct/README.md index 6338481..40decd1 100644 --- a/glossary/struct/README.md +++ b/glossary/struct/README.md @@ -17,4 +17,4 @@ newMaterial = matStruct(vec4(0.1, 0.1, 0.1, 1.0), ``` ### Description -```struct``` declare a custom data structures based on standard types. A constructor for the structure with the same name is created automatically. The declaration of a variable (in this case "newMaterial") is optional. +```struct``` declares a custom data structure based on standard types. A constructor for the structure with the same name is created automatically. The declaration of a variable (in this case "newMaterial") is optional. diff --git a/glossary/tan/README.md b/glossary/tan/README.md index 0430a8c..c830c6b 100644 --- a/glossary/tan/README.md +++ b/glossary/tan/README.md @@ -10,7 +10,7 @@ vec4 tan(vec4 angle) ``` ### Parameters -```angle``` specify the quantity, in radians, of which to return the tangent. +```angle``` specifies the quantity, in radians, of which to return the tangent. ### Description ```tan()``` returns the trigonometric tangent of angle.