2
0

Curve.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../../list.js"></script>
  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. <div class="desc">An extensible curve object which contains methods for interpolation.</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]()</h3>
  14. <div>
  15. todo
  16. </div>
  17. <h2>Methods</h2>
  18. <h3>.getPoint ( t )</h3>
  19. <div>Returns a vector for point t of the curve where t is between 0 and 1</div>
  20. <h3>.getPointAt ( u )</h3>
  21. <div>Returns a vector for point at relative position in curve according to arc length</div>
  22. <h3>.getPoints ( divisions )</h3>
  23. <div>Get sequence of points using getPoint( t ) </div>
  24. <h3>.getSpacedPoints ( divisions )</h3>
  25. <div>Get sequence of equi-spaced points using getPointAt( u )</div>
  26. <h3>.getLength ()</h3>
  27. <div>Get total curve arc length</div>
  28. <h3>.getLengths ( divisions )</h3>
  29. <div>Get list of cumulative segment lengths</div>
  30. <h3>.updateArcLengths ()</h3>
  31. <div>Update the cumlative segment distance cache</div>
  32. <h3>.getUtoTmapping ( u, distance )</h3>
  33. <div>Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant</div>
  34. <h3>.getTangent ( t )</h3>
  35. <div>Returns a unit vector tangent at t. If the subclassed curve do not implement its tangent derivation, 2 points a small delta apart will be used to find its gradient which seems to give a reasonable approximation</div>
  36. <h3>.getTangentAt ( u )</h3>
  37. <div>Returns tangent at equidistant point u on the curve</div>
  38. <h2>Source</h2>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </body>
  41. </html>