|
@@ -141,20 +141,20 @@
|
|
|
<h3>[method:Quaternion rotateTowards]( [param:Quaternion q], [param:Float step] )</h3>
|
|
|
<p>
|
|
|
[page:Quaternion q] - The target quaternion.<br />
|
|
|
- [page:float step] - The angular step in radians.<br /><br />
|
|
|
+ [page:Float step] - The angular step in radians.<br /><br />
|
|
|
|
|
|
Rotates this quaternion by a given angular step to the defined quaternion *q*.
|
|
|
The method ensures that the final quaternion will not overshoot *q*.
|
|
|
</p>
|
|
|
|
|
|
- <h3>[method:Quaternion slerp]( [param:Quaternion qb], [param:float t] )</h3>
|
|
|
+ <h3>[method:Quaternion slerp]( [param:Quaternion qb], [param:Float t] )</h3>
|
|
|
<p>
|
|
|
[page:Quaternion qb] - The other quaternion rotation<br />
|
|
|
- [page:float t] - interpolation factor in the closed interval [0, 1].<br /><br />
|
|
|
+ [page:Float t] - interpolation factor in the closed interval [0, 1].<br /><br />
|
|
|
|
|
|
- Handles the spherical linear interpolation between quaternions. [page:float t] represents the
|
|
|
- amount of rotation between this quaternion (where [page:float t] is 0) and [page:Quaternion qb] (where
|
|
|
- [page:float t] is 1). This quaternion is set to the result. Also see the static version of the
|
|
|
+ Handles the spherical linear interpolation between quaternions. [page:Float t] represents the
|
|
|
+ amount of rotation between this quaternion (where [page:Float t] is 0) and [page:Quaternion qb] (where
|
|
|
+ [page:Float t] is 1). This quaternion is set to the result. Also see the static version of the
|
|
|
*slerp* below.
|
|
|
|
|
|
<code>
|
|
@@ -233,7 +233,7 @@ q.slerp( qb, t )
|
|
|
[page:Quaternion qStart] - The starting quaternion (where [page:Float t] is 0)<br />
|
|
|
[page:Quaternion qEnd] - The ending quaternion (where [page:Float t] is 1)<br />
|
|
|
[page:Quaternion qTarget] - The target quaternion that gets set with the result<br />
|
|
|
- [page:float t] - interpolation factor in the closed interval [0, 1].<br /><br />
|
|
|
+ [page:Float t] - interpolation factor in the closed interval [0, 1].<br /><br />
|
|
|
|
|
|
Unlike the normal method, the static version of slerp sets a target quaternion to the result of the slerp operation.
|
|
|
<code>
|
|
@@ -257,7 +257,7 @@ q.slerp( qb, t )
|
|
|
[page:Integer srcOffset0] - An offset into the array *src0*.<br />
|
|
|
[page:Array src1] - The source array of the target quatnerion.<br />
|
|
|
[page:Integer srcOffset1] - An offset into the array *src1*.<br />
|
|
|
- [page:float t] - Normalized interpolation factor (between 0 and 1).<br /><br />
|
|
|
+ [page:Float t] - Normalized interpolation factor (between 0 and 1).<br /><br />
|
|
|
</p>
|
|
|
<p>
|
|
|
Like the static *slerp* method above, but operates directly on flat arrays of numbers.
|