@@ -331,7 +331,7 @@
Returns an array [x, y], or copies x and y into the provided [page:Array array].
</p>
-
+
<h3>[method:this random]()</h3>
<p>
Sets the x and y components of the vector to a random value [0-1].
@@ -483,7 +483,7 @@ Object.assign( Vector2.prototype, {
return this;
},
random: function () {
this.x = Math.random();
@@ -286,7 +286,7 @@ export class Vector3 implements Vector {
index: number,
offset?: number
): this;
/**
* Sets this vector's x, y and z from Math.random
*/
@@ -713,7 +713,7 @@ Object.assign( Vector3.prototype, {
@@ -721,7 +721,7 @@ Object.assign( Vector3.prototype, {
this.z = Math.random();
}
} );
@@ -209,7 +209,7 @@ export class Vector4 implements Vector {
* Sets this vector's x, y, z and w from Math.random
@@ -647,7 +647,7 @@ Object.assign( Vector4.prototype, {
@@ -656,7 +656,7 @@ Object.assign( Vector4.prototype, {
this.w = Math.random();