|
@@ -52,10 +52,10 @@
|
|
|
|
|
|
<h3>[name]( [param:Float x], [param:Float y], [param:Float z], [param:Float w] )</h3>
|
|
|
<p>
|
|
|
- [page:Float x] - the x value of the vector. Default is *0*.<br />
|
|
|
- [page:Float y] - the y value of the vector. Default is *0*.<br />
|
|
|
- [page:Float z] - the z value of the vector. Default is *0*.<br />
|
|
|
- [page:Float w] - the w value of the vector. Default is *1*.<br /><br />
|
|
|
+ [page:Float x] - the x value of this vector. Default is *0*.<br />
|
|
|
+ [page:Float y] - the y value of this vector. Default is *0*.<br />
|
|
|
+ [page:Float z] - the z value of this vector. Default is *0*.<br />
|
|
|
+ [page:Float w] - the w value of this vector. Default is *1*.<br /><br />
|
|
|
|
|
|
Creates a new [name].
|
|
|
</p>
|
|
@@ -99,7 +99,7 @@
|
|
|
|
|
|
<h3>[method:this ceil]()</h3>
|
|
|
<p>
|
|
|
- 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.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:this clamp]( [param:Vector4 min], [param:Vector4 max] )</h3>
|
|
@@ -156,7 +156,7 @@
|
|
|
<p>Checks for strict equality of this vector and [page:Vector4 v].</p>
|
|
|
|
|
|
<h3>[method:this floor]()</h3>
|
|
|
- <p>The components of the vector are rounded down to the nearest integer value.</p>
|
|
|
+ <p>The components of this vector are rounded down to the nearest integer value.</p>
|
|
|
|
|
|
<h3>[method:this fromArray]( [param:Array array], [param:Integer offset] )</h3>
|
|
|
<p>
|
|
@@ -226,7 +226,7 @@
|
|
|
|
|
|
<h3>[method:this normalize]()</h3>
|
|
|
<p>
|
|
|
- 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.
|
|
|
</p>
|
|
|
|
|
@@ -246,11 +246,11 @@
|
|
|
<p>Multiplies this vector by scalar [page:Float s].</p>
|
|
|
|
|
|
<h3>[method:this round]()</h3>
|
|
|
- <p>The components of the vector are rounded to the nearest integer value.</p>
|
|
|
+ <p>The components of this vector are rounded to the nearest integer value.</p>
|
|
|
|
|
|
<h3>[method:this roundToZero]()</h3>
|
|
|
<p>
|
|
|
- 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.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:this set]( [param:Float x], [param:Float y], [param:Float z], [param:Float w] )</h3>
|
|
@@ -285,7 +285,7 @@
|
|
|
|
|
|
<h3>[method:this setLength]( [param:Float l] )</h3>
|
|
|
<p>
|
|
|
- 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].
|
|
|
</p>
|
|
|
|
|
@@ -317,7 +317,7 @@
|
|
|
|
|
|
<h3>[method:Array toArray]( [param:Array array], [param:Integer offset] )</h3>
|
|
|
<p>
|
|
|
- [page:Array array] - (optional) array to store the vector to. If this is not provided, a new array will be created.<br />
|
|
|
+ [page:Array array] - (optional) array to store this vector to. If this is not provided, a new array will be created.<br />
|
|
|
[page:Integer offset] - (optional) optional offset into the array.<br /><br />
|
|
|
|
|
|
Returns an array [x, y, z, w], or copies x, y, z and w into the provided [page:Array array].
|
|
@@ -325,7 +325,7 @@
|
|
|
|
|
|
<h3>[method:this random]()</h3>
|
|
|
<p>
|
|
|
- Sets the x, y, z and w components of the vector to a random value [0-1].
|
|
|
+ Sets the x, y, z and w components of this vector to a random value [0-1].
|
|
|
</p>
|
|
|
|
|
|
<h2>Source</h2>
|