AnimationUtils.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="en">
  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. An object with various functions to assist with animations, used
  13. internally.
  14. </p>
  15. <h2>Methods</h2>
  16. <h3>[method:Array convertArray]( array, type, forceClone )</h3>
  17. <p>Converts an array to a specific type.</p>
  18. <h3>[method:Array flattenJSON]( jsonKeys, times, values, valuePropertyName )</h3>
  19. <p>Used for parsing AOS keyframe formats.</p>
  20. <h3>[method:Array getKeyframeOrder]( times )</h3>
  21. <p>Returns an array by which times and values can be sorted.</p>
  22. <h3>[method:Boolean isTypedArray]( object )</h3>
  23. <p>Returns `true` if the object is a typed array.</p>
  24. <h3>[method:AnimationClip makeClipAdditive]( [param:AnimationClip targetClip], [param:Number referenceFrame], [param:AnimationClip referenceClip], [param:Number fps] )</h3>
  25. <p>Converts the keyframes of the given animation clip to an additive format.</p>
  26. <h3>[method:Array sortedArray]( values, stride, order )</h3>
  27. <p>Sorts the array previously returned by [page:AnimationUtils.getKeyframeOrder getKeyframeOrder].</p>
  28. <h3>[method:AnimationClip subclip]( [param:AnimationClip clip], [param:String name], [param:Number startFrame], [param:Number endFrame], [param:Number fps] )</h3>
  29. <p>Creates a new clip, containing only the segment of the original clip between the given frames.</p>
  30. <h2>Source</h2>
  31. <p>
  32. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  33. </p>
  34. </body>
  35. </html>