diff --git a/docs/api/en/math/Vector2.html b/docs/api/en/math/Vector2.html index 8a4d09d86d007b..b2e0bfa75992c4 100644 --- a/docs/api/en/math/Vector2.html +++ b/docs/api/en/math/Vector2.html @@ -53,8 +53,8 @@
- [page:Float x] - the x value of the vector. Default is *0*.
- [page:Float y] - the y value of the vector. Default is *0*.
+ [page:Float x] - the x value of this vector. Default is *0*.
+ [page:Float y] - the y value of this vector. Default is *0*.
Creates a new [name].
- The [page:.x x] and [page:.y y] components of the vector are rounded up to the nearest integer value. + The [page:.x x] and [page:.y y] components of this vector are rounded up to the nearest integer value.
Checks for strict equality of this vector and [page:Vector2 v].
The components of the vector are rounded down to the nearest integer value.
+The components of this vector are rounded down to the nearest integer value.
@@ -247,7 +247,7 @@
- Converts this vector to a [link:https://en.wikipedia.org/wiki/Unit_vector unit vector] - that is, sets it equal to the vector with the same direction + Converts this vector to a [link:https://en.wikipedia.org/wiki/Unit_vector unit vector] - that is, sets it equal to a vector with the same direction as this one, but [page:.length length] 1.
@@ -275,15 +275,15 @@The components of the vector are rounded to the nearest integer value.
+The components of this vector are rounded to the nearest integer value.
- The components of the vector are rounded towards zero (up if negative, down if positive) to an integer value. + The components of this vector are rounded towards zero (up if negative, down if positive) to an integer value.
- Sets this vector to the vector with the same direction as this one, but [page:.length length] + Sets this vector to a vector with the same direction as this one, but [page:.length length] [page:Float l].
@@ -326,12 +326,17 @@
- [page:Array array] - (optional) array to store the vector to. If this is not provided, a new array will be created.
+ [page:Array array] - (optional) array to store this vector to. If this is not provided, a new array will be created.
[page:Integer offset] - (optional) optional offset into the array.
Returns an array [x, y], or copies x and y into the provided [page:Array array].
+ Sets the x and y components of this vector to a random value [0-1]. +
+diff --git a/docs/api/en/math/Vector3.html b/docs/api/en/math/Vector3.html index 9b10fa851fef56..5deab0876517da 100644 --- a/docs/api/en/math/Vector3.html +++ b/docs/api/en/math/Vector3.html @@ -53,9 +53,9 @@
- [page:Float x] - the x value of the vector. Default is *0*.
- [page:Float y] - the y value of the vector. Default is *0*.
- [page:Float z] - the z value of the vector. Default is *0*.
+ [page:Float x] - the x value of this vector. Default is *0*.
+ [page:Float y] - the y value of this vector. Default is *0*.
+ [page:Float z] - the z value of this vector. Default is *0*.
Creates a new [name].
- The [page:.x x], [page:.y y] and [page:.z z] components of the vector are rounded up to the nearest integer value. + The [page:.x x], [page:.y y] and [page:.z z] components of this vector are rounded up to the nearest integer value.
Checks for strict equality of this vector and [page:Vector3 v].
The components of the vector are rounded down to the nearest integer value.
+The components of this vector are rounded down to the nearest integer value.
@@ -297,7 +297,7 @@
- Convert this vector to a [link:https://en.wikipedia.org/wiki/Unit_vector unit vector] - that is, sets it equal to the vector with the same direction + Convert this vector to a [link:https://en.wikipedia.org/wiki/Unit_vector unit vector] - that is, sets it equal to a vector with the same direction as this one, but [page:.length length] 1.
@@ -323,16 +323,16 @@
[page:Vector3 normal] - the normal to the reflecting plane
- Reflect the vector off of plane orthogonal to [page:Vector3 normal]. Normal is assumed to
+ Reflect this vector off of plane orthogonal to [page:Vector3 normal]. Normal is assumed to
have unit length.
The components of the vector are rounded to the nearest integer value.
+The components of this vector are rounded to the nearest integer value.
- The components of the vector are rounded towards zero (up if negative, down if positive) to an integer value. + The components of this vector are rounded towards zero (up if negative, down if positive) to an integer value.
- Set this vector to the vector with the same direction as this one, but [page:.length length] + Set this vector to a vector with the same direction as this one, but [page:.length length] [page:Float l].
@@ -417,7 +417,7 @@
- [page:Array array] - (optional) array to store the vector to. If this is not provided
+ [page:Array array] - (optional) array to store this vector to. If this is not provided
a new array will be created.
[page:Integer offset] - (optional) optional offset into the array.
@@ -437,6 +437,10 @@
+ Sets the x, y and z components of this vector to a random value [0-1]. +
- [page:Float x] - the x value of the vector. Default is *0*.
- [page:Float y] - the y value of the vector. Default is *0*.
- [page:Float z] - the z value of the vector. Default is *0*.
- [page:Float w] - the w value of the vector. Default is *1*.
+ [page:Float x] - the x value of this vector. Default is *0*.
+ [page:Float y] - the y value of this vector. Default is *0*.
+ [page:Float z] - the z value of this vector. Default is *0*.
+ [page:Float w] - the w value of this vector. Default is *1*.
Creates a new [name].
- The [page:.x x], [page:.y y], [page:.z z] and [page:.w w] components of the vector are rounded up to the nearest integer value. + The [page:.x x], [page:.y y], [page:.z z] and [page:.w w] components of this vector are rounded up to the nearest integer value.
Checks for strict equality of this vector and [page:Vector4 v].
The components of the vector are rounded down to the nearest integer value.
+The components of this vector are rounded down to the nearest integer value.
@@ -226,7 +226,7 @@
- Converts this vector to a [link:https://en.wikipedia.org/wiki/Unit_vector unit vector] - that is, sets it equal to the vector with the same direction + Converts this vector to a [link:https://en.wikipedia.org/wiki/Unit_vector unit vector] - that is, sets it equal to a vector with the same direction as this one, but [page:.length length] 1.
@@ -246,11 +246,11 @@Multiplies this vector by scalar [page:Float s].
The components of the vector are rounded to the nearest integer value.
+The components of this vector are rounded to the nearest integer value.
- The components of the vector are rounded towards zero (up if negative, down if positive) to an integer value. + The components of this vector are rounded towards zero (up if negative, down if positive) to an integer value.
- Sets this vector to the vector with the same direction as this one, but [page:.length length] + Sets this vector to a vector with the same direction as this one, but [page:.length length] [page:Float l].
@@ -317,12 +317,17 @@
- [page:Array array] - (optional) array to store the vector to. If this is not provided, a new array will be created.
+ [page:Array array] - (optional) array to store this vector to. If this is not provided, a new array will be created.
[page:Integer offset] - (optional) optional offset into the array.
Returns an array [x, y, z, w], or copies x, y, z and w into the provided [page:Array array].
+ Sets the x, y, z and w components of this vector to a random value [0-1]. +
+diff --git a/docs/api/zh/math/Vector2.html b/docs/api/zh/math/Vector2.html index 9f832d4502389e..a5ee5d62c98f13 100644 --- a/docs/api/zh/math/Vector2.html +++ b/docs/api/zh/math/Vector2.html @@ -333,6 +333,11 @@
+ Sets the x and y components of this vector to a random value [0-1]. +
+diff --git a/docs/api/zh/math/Vector3.html b/docs/api/zh/math/Vector3.html index 43df0e1dc356a0..011d7eecda7142 100644 --- a/docs/api/zh/math/Vector3.html +++ b/docs/api/zh/math/Vector3.html @@ -318,7 +318,7 @@
[page:Vector3 normal] - the normal to the reflecting plane
- Reflect the vector off of plane orthogonal to [page:Vector3 normal]. Normal is assumed to
+ Reflect this vector off of plane orthogonal to [page:Vector3 normal]. Normal is assumed to
have unit length.
+ Sets the x, y and z components of this vector to a random value [0-1]. +
+ Sets the x, y, z and w components of this vector to a random value [0-1]. +
+