AnimationUtils.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 arraySlice]( array, from, to )</h3>
  17. <p>
  18. This is the same as Array.prototype.slice, but also works on typed arrays.
  19. </p>
  20. <h3>[method:Array convertArray]( array, type, forceClone )</h3>
  21. <p>Converts an array to a specific type.</p>
  22. <h3>[method:Array flattenJSON]( jsonKeys, times, values, valuePropertyName )</h3>
  23. <p>Used for parsing AOS keyframe formats.</p>
  24. <h3>[method:Array getKeyframeOrder]( times )</h3>
  25. <p>Returns an array by which times and values can be sorted.</p>
  26. <h3>[method:Boolean isTypedArray]( object )</h3>
  27. <p>Returns `true` if the object is a typed array.</p>
  28. <h3>[method:AnimationClip makeClipAdditive]( [param:AnimationClip targetClip], [param:Number referenceFrame], [param:AnimationClip referenceClip], [param:Number fps] )</h3>
  29. <p>Converts the keyframes of the given animation clip to an additive format.</p>
  30. <h3>[method:Array sortedArray]( values, stride, order )</h3>
  31. <p>Sorts the array previously returned by [page:AnimationUtils.getKeyframeOrder getKeyframeOrder].</p>
  32. <h3>[method:AnimationClip subclip]( [param:AnimationClip clip], [param:String name], [param:Number startFrame], [param:Number endFrame], [param:Number fps] )</h3>
  33. <p>Creates a new clip, containing only the segment of the original clip between the given frames.</p>
  34. <h2>Source</h2>
  35. <p>
  36. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  37. </p>
  38. </body>
  39. </html>