提交 a10b8f78 编写于 作者: M Mugen87

Documentation: Added Vector2.clampLength and Vector3.clampLength

上级 43dcad24
......@@ -171,6 +171,16 @@
If this vector's x or y values are less than the min value, they are replaced by the min value.
</div>
<h3>[method:Vector2 clampLength]([page:Float min], [page:Float max]) [page:Vector2 this]</h3>
<div>
min -- [page:Float] the minimum value the length will be clamped to <br />
max -- [page:Float] the maximum value the length will be clamped to
</div>
<div>
If this vector's length is greater than the max value, it is replaced by the max value. <br /><br />
If this vector's length is less than the min value, it is replaced by the min value.
</div>
<h3>[method:Vector2 floor]()</h3>
<div>
The components of the vector are rounded downwards (towards negative infinity) to an integer value.
......
......@@ -206,6 +206,16 @@
If this vector's x, y or z values are less than the min value, they are replaced by the min value.
</div>
<h3>[method:Vector3 clampLength]([page:Float min], [page:Float max]) [page:Vector3 this]</h3>
<div>
min -- [page:Float] the minimum value the length will be clamped to <br />
max -- [page:Float] the maximum value the length will be clamped to
</div>
<div>
If this vector's length is greater than the max value, it is replaced by the max value. <br /><br />
If this vector's length is less than the min value, it is replaced by the min value.
</div>
<h3>[method:Vector3 floor]()</h3>
<div>
The components of the vector are rounded downwards (towards negative infinity) to an integer value.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册