提交 2f743c7d 编写于 作者: M Mr.doob

Merge pull request #6961 from makc/vectors-help-min-max-mess

fixes #6955, and second line breaks (for consistency)
......@@ -152,7 +152,8 @@
max -- [page:Vector2] containing the max x and y values in the desired range
</div>
<div>
If this vector's x or y value is greater than the max vector's x or y value, it is replaced by the corresponding value. <br /> If this vector's x or y value is less than the min vector's x or y value, it is replaced by the corresponding value.
If this vector's x or y value is greater than the max vector's x or y value, it is replaced by the corresponding value. <br /><br />
If this vector's x or y value is less than the min vector's x or y value, it is replaced by the corresponding value.
</div>
<h3>[method:Vector2 clampScalar]([page:Float min], [page:Float max]) [page:Vector2 this]</h3>
......@@ -161,7 +162,8 @@
max -- [page:Float] the maximum value the components will be clamped to
</div>
<div>
If this vector's x or y values are greater than the max value, they are replaced by the max value. <br /> If this vector's x or y values are less than the min value, they are replaced by the min value.
If this vector's x or y values are greater than the max value, they are replaced by the max value. <br /><br />
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 floor]()</h3>
......@@ -251,7 +253,7 @@
v -- [page:Vector2]
</div>
<div>
If this vector's x or y value is less than v's x or y value, replace that value with the corresponding min value.
If this vector's x or y value is greater than v's x or y value, replace that value with the corresponding min value.
</div>
<h3>[method:Vector2 max]([page:Vector2 v]) [page:Vector2 this]</h3>
......@@ -259,7 +261,7 @@
v -- [page:Vector2]
</div>
<div>
If this vector's x or y value is greater than v's x or y value, replace that value with the corresponding max value.
If this vector's x or y value is less than v's x or y value, replace that value with the corresponding max value.
</div>
<h3>[method:Vector2 setX]([page:Float x]) [page:Vector2 this]</h3>
......
......@@ -202,7 +202,8 @@
max -- [page:Float] the maximum value the components will be clamped to
</div>
<div>
If this vector's x, y or z values are greater than the max value, they are replaced by the max value. <br /> If this vector's x, y or z values are less than the min value, they are replaced by the min value.
If this vector's x, y or z values are greater than the max value, they are replaced by the max value. <br /><br />
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 floor]()</h3>
......@@ -278,7 +279,7 @@
v -- [page:Vector3]
</div>
<div>
If this vector's x, y, or z value is less than vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
If this vector's x, y, or z value is greater than vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
</div>
<h3>[method:Vector3 max]([page:Vector3 v]) [page:Vector3 this]</h3>
......@@ -286,7 +287,7 @@
v -- [page:Vector3]
</div>
<div>
If this vector's x, y, or z value is greater than vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
If this vector's x, y, or z value is less than vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
</div>
<h3>[method:Vector3 setComponent]([page:Integer index], [page:Float value]) [page:Vector3 this]</h3>
......
......@@ -137,8 +137,7 @@
</div>
<div>
If this vector's x, y, z, or w value is greater than the max vector's x, y, z, or w value, it is replaced by the corresponding value.<br/><br/>
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 replaced by the corresponding value.
</div>
<h3>[method:Vector4 clampScalar]([page:Float min], [page:Float max]) [page:Vector4 this]</h3>
......@@ -147,7 +146,7 @@
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 greater than the max value, they are replaced by the max value. <br /><br />
If this vector's x, y, z or w values are less than the min value, they are replaced by the min value.
</div>
......@@ -184,7 +183,7 @@
v -- [page:Vector4]
</div>
<div>
If this vector's x, y, z, or w value is less than vector v's x, y, z, or w value, that value is replaced by the corresponding vector v value.
If this vector's x, y, z, or w value is greater than vector v's x, y, z, or w value, that value is replaced by the corresponding vector v value.
</div>
<h3>[method:Vector4 max]([page:Vector4 v]) [page:Vector4 this]</h3>
......@@ -192,7 +191,7 @@
v -- [page:Vector4]
</div>
<div>
If this vector's x, y, z, or w value is greater than vector v's x, y, z, or w value, that value is replaced by the corresponding vector v value.
If this vector's x, y, z, or w value is less than vector v's x, y, z, or w value, that value is replaced by the corresponding vector v value.
</div>
<h3>[method:Vector4 addScalar]([page:Float s]) [page:Vector4 this]</h3>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册