Skip to content

Commit

Permalink
Docs: Add Quaternion.multiplyQuaternionsFlat(). (#23577)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Feb 24, 2022
1 parent a7863bd commit 60c09d8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion docs/api/en/math/Quaternion.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,20 @@ <h3>[method:undefined slerpFlat]( [param:Array dst], [param:Integer dstOffset],
[page:Array src1] - The source array of the target quaternion.<br />
[page:Integer srcOffset1] - An offset into the array *src1*.<br />
[page:Float t] - Normalized interpolation factor (between 0 and 1).<br /><br />

This SLERP implementation assumes the quaternion data are managed in flat arrays.
</p>

<h3>[method:Array multiplyQuaternionsFlat]( [param:Array dst], [param:Integer dstOffset], [param:Array src0], [param:Integer srcOffset0], [param:Array src1], [param:Integer srcOffset1] )</h3>
<p>
Like the static *slerp* method above, but operates directly on flat arrays of numbers.
[page:Array dst] - The output array.<br />
[page:Integer dstOffset] - An offset into the output array.<br />
[page:Array src0] - The source array of the starting quaternion.<br />
[page:Integer srcOffset0] - An offset into the array *src0*.<br />
[page:Array src1] - The source array of the target quaternion.<br />
[page:Integer srcOffset1] - An offset into the array *src1*.<br /><br />

This multiplication implementation assumes the quaternion data are managed in flat arrays.
</p>

<!-- Note: Do not add non-static methods to the bottom of this page. Put them above the <h2>Static Methods</h2> -->
Expand Down
13 changes: 12 additions & 1 deletion docs/api/zh/math/Quaternion.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,20 @@ <h3>[method:undefined slerpFlat]( [param:Array dst], [param:Integer dstOffset],
[page:Array src1] - 目标四元数的源数组<br />
[page:Integer srcOffset1] - 数组 *src1* 的偏移量<br />
[page:Float t] - 归一化插值因子(介于 0 和 1 之间)<br /><br />

This SLERP implementation assumes the quaternion data are managed in flat arrays.
</p>

<h3>[method:Array multiplyQuaternionsFlat]( [param:Array dst], [param:Integer dstOffset], [param:Array src0], [param:Integer srcOffset0], [param:Array src1], [param:Integer srcOffset1] )</h3>
<p>
类似于上面的 *slerp* 方法,但直接对平面数组进行操作。
[page:Array dst] - The output array.<br />
[page:Integer dstOffset] - An offset into the output array.<br />
[page:Array src0] - The source array of the starting quaternion.<br />
[page:Integer srcOffset0] - An offset into the array *src0*.<br />
[page:Array src1] - The source array of the target quaternion.<br />
[page:Integer srcOffset1] - An offset into the array *src1*.<br /><br />

This multiplication implementation assumes the quaternion data are managed in flat arrays.
</p>

<!-- Note: Do not add non-static methods to the bottom of this page. Put them above the <h2>Static Methods</h2> -->
Expand Down

0 comments on commit 60c09d8

Please sign in to comment.