|
@@ -130,6 +130,36 @@
|
|
If this vector's x, y, z, or w value is less than the min vector's x, y, z, or w value, it is replace by the corresponding value.
|
|
If this vector's x, y, z, or w value is less than the min vector's x, y, z, or w value, it is replace by the corresponding value.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+ <h3>.clampScalar([page:Float min], [page:Float max]) [page:Vector4 this]</h3>
|
|
|
|
+ <div>
|
|
|
|
+ min -- [page:Float] the minimum value the components will be clamped to <br />
|
|
|
|
+ max -- [page:Float] the maximum value the components will be clamped to
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ If this vector's x, y, z or w values are greater than the max value, they are replaced by the max value. <br />
|
|
|
|
+ If this vector's x, y, z or w values are less than the min value, they are replace by the min value.
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <h3>.floor() [page:Vector4]</h3>
|
|
|
|
+ <div>
|
|
|
|
+ The components of the vector are rounded downwards (towards negative infinity) to an integer value.
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <h3>.ceil() [page:Vector4]</h3>
|
|
|
|
+ <div>
|
|
|
|
+ The components of the vector are rounded upwards (towards positive infinity) to an integer value.
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <h3>.round() [page:Vector4]</h3>
|
|
|
|
+ <div>
|
|
|
|
+ The components of the vector are rounded towards the nearest integer value.
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <h3>.roundToZero() [page:Vector4]</h3>
|
|
|
|
+ <div>
|
|
|
|
+ The components of the vector are rounded towards zero (up if negative, down if positive) to an integer value.
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<h3>.applyMatrix4([page:Matrix4 m]) [page:Vector4 this]</h3>
|
|
<h3>.applyMatrix4([page:Matrix4 m]) [page:Vector4 this]</h3>
|
|
<div>
|
|
<div>
|
|
m -- [page:Matrix4]
|
|
m -- [page:Matrix4]
|
|
@@ -210,7 +240,7 @@
|
|
value -- [page:Float]
|
|
value -- [page:Float]
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- Sets the value of the vector component x, y, or z by an index.<br/><br/>
|
|
|
|
|
|
+ Sets the value of the vector component x, y, or z by an index.<br/><br/>
|
|
|
|
|
|
Index 0: x<br/>
|
|
Index 0: x<br/>
|
|
Index 1: y<br/>
|
|
Index 1: y<br/>
|