AnimationUtils.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">
  12. 一个提供各种动画辅助方法的对象,内部使用。
  13. </p>
  14. <h2>方法</h2>
  15. <h3>[method:Array convertArray]( array, type, forceClone )</h3>
  16. <p>
  17. 将数组转换为某种特定类型。
  18. </p>
  19. <h3>[method:Array flattenJSON]( jsonKeys, times, values, valuePropertyName )</h3>
  20. <p>
  21. 用于解析AOS关键帧格式。
  22. </p>
  23. <h3>[method:Array getKeyframeOrder]( times )</h3>
  24. <p>
  25. 返回一个数组,时间和值可以根据此数组排序。
  26. </p>
  27. <h3>[method:Boolean isTypedArray]( object )</h3>
  28. <p>
  29. 如果该对象是类型化数组,返回*true*
  30. </p>
  31. <h3>[method:AnimationClip makeClipAdditive]( [param:AnimationClip targetClip], [param:Number referenceFrame], [param:AnimationClip referenceClip], [param:Number fps] )</h3>
  32. <p>
  33. Converts the keyframes of the given animation clip to an additive format.
  34. </p>
  35. <h3>[method:Array sortedArray]( values, stride, order )</h3>
  36. <p>
  37. 将[page:AnimationUtils.getKeyframeOrder getKeyframeOrder]方法返回的数组排序。
  38. </p>
  39. <h3>[method:AnimationClip subclip]( [param:AnimationClip clip], [param:String name], [param:Number startFrame], [param:Number endFrame], [param:Number fps] )</h3>
  40. <p>
  41. 创建一个新的片段,仅包含所给定帧之间的原始剪辑片段。
  42. </p>
  43. <h2>源码</h2>
  44. <p>
  45. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  46. </p>
  47. </body>
  48. </html>