QuaternionKeyframeTrack.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:KeyframeTrack] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">
  14. A Track of quaternion keyframe values.
  15. </div>
  16. <h2>Constructor</h2>
  17. <h3>[name]( [page:String name], [page:Array times], [page:Array values] )</h3>
  18. <div>
  19. -- [page:String name] (required) identifier for the KeyframeTrack.<br />
  20. -- [page:Array times] (required) array of keyframe times<br />
  21. -- [page:Array values] values for the keyframes at the times specified.<br />
  22. -- [page:Constant interpolation] the type of interpolation to use. See [page:Animation Animation Constants] for possible values.
  23. Default is [page:Animation InterpolateLinear].
  24. </div>
  25. <h2>Properties</h2>
  26. See [page:KeyframeTrack] for inherited properties.
  27. <h3>[property:String ValueTypeName]</h3>
  28. <div>
  29. String 'quaternion'.
  30. </div>
  31. <h3>[property:Constant DefaultInterpolation]</h3>
  32. <div>
  33. The default interpolation type to use, [page:Animation InterpolateLinear].
  34. </div>
  35. <h2>Methods</h2>
  36. See [page:KeyframeTrack] for inherited methods.
  37. <h3>[method:Number getValueSize ]( )</h3>
  38. <div>
  39. The the size of each value (length of the values array divied by length of times array).
  40. </div>
  41. <h3>[method:null InterpolantFactoryMethodLinear ]( )</h3>
  42. <div>
  43. Returns a new [page:QuaternionLinearInterpolant QuaternionLinearInterpolant] based on the [page:KeyframeTrack.values values],
  44. [page:KeyframeTrack.times times] and [page:KeyframeTrack.valueSize valueSize] of the keyframes.
  45. </div>
  46. <h2>Source</h2>
  47. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  48. </body>
  49. </html>