CubicBezierCurve3.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CubicBezierCurve3 - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="Curve.html">Curve</a> → </p>
  13. <h1 translate="no">CubicBezierCurve3</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A curve representing a 3D Cubic Bezier curve.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="CubicBezierCurve3" translate="no">new <a href="#CubicBezierCurve3">CubicBezierCurve3</a><span class="signature">( v0 : <span class="param-type"><a href="Vector3.html">Vector3</a></span>, v1 : <span class="param-type"><a href="Vector3.html">Vector3</a></span>, v2 : <span class="param-type"><a href="Vector3.html">Vector3</a></span>, v3 : <span class="param-type"><a href="Vector3.html">Vector3</a></span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new Cubic Bezier curve.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong translate="no">v0</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The start point.</p>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="name">
  38. <strong translate="no">v1</strong>
  39. </td>
  40. <td class="description last">
  41. <p>The first control point.</p>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="name">
  46. <strong translate="no">v2</strong>
  47. </td>
  48. <td class="description last">
  49. <p>The second control point.</p>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="name">
  54. <strong translate="no">v3</strong>
  55. </td>
  56. <td class="description last">
  57. <p>The end point.</p>
  58. </td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. </div>
  63. </div>
  64. <h2 class="subsection-title">Properties</h2>
  65. <div class="member">
  66. <h3 class="name" id="isCubicBezierCurve3" translate="no">.<a href="#isCubicBezierCurve3">isCubicBezierCurve3</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  67. <div class="description">
  68. <p>This flag can be used for type testing.</p>
  69. <p>Default is <code>true</code>.</p>
  70. </div>
  71. </div>
  72. <div class="member">
  73. <h3 class="name" id="v0" translate="no">.<a href="#v0">v0</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
  74. <div class="description">
  75. <p>The start point.</p>
  76. </div>
  77. </div>
  78. <div class="member">
  79. <h3 class="name" id="v1" translate="no">.<a href="#v1">v1</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
  80. <div class="description">
  81. <p>The first control point.</p>
  82. </div>
  83. </div>
  84. <div class="member">
  85. <h3 class="name" id="v2" translate="no">.<a href="#v2">v2</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
  86. <div class="description">
  87. <p>The second control point.</p>
  88. </div>
  89. </div>
  90. <div class="member">
  91. <h3 class="name" id="v3" translate="no">.<a href="#v3">v3</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
  92. <div class="description">
  93. <p>The end point.</p>
  94. </div>
  95. </div>
  96. <h2 class="subsection-title">Methods</h2>
  97. <h3 class="name name-method" id="getPoint" translate="no">.<a href="#getPoint">getPoint</a><span class="signature">( t : <span class="param-type">number</span>, optionalTarget : <span class="param-type"><a href="Vector3.html">Vector3</a></span> )</span><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
  98. <div class="method">
  99. <div class="description">
  100. <p>Returns a point on the curve.</p>
  101. </div>
  102. <table class="params">
  103. <tbody>
  104. <tr>
  105. <td class="name">
  106. <strong translate="no">t</strong>
  107. </td>
  108. <td class="description last">
  109. <p>A interpolation factor representing a position on the curve. Must be in the range <code>[0,1]</code>.</p>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td class="name">
  114. <strong translate="no">optionalTarget</strong>
  115. </td>
  116. <td class="description last">
  117. <p>The optional target vector the result is written to.</p>
  118. </td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. <dl class="details">
  123. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Curve.html#getPoint">Curve#getPoint</a></dt>
  124. </dl>
  125. <dl class="details">
  126. <dt class="tag-returns"><strong>Returns:</strong> The position on the curve.</dt>
  127. </dl>
  128. </div>
  129. <h2 class="subsection-title">Source</h2>
  130. <p>
  131. <a href="https://github.com/mrdoob/three.js/blob/master/src/extras/curves/CubicBezierCurve3.js" translate="no" target="_blank" rel="noopener">src/extras/curves/CubicBezierCurve3.js</a>
  132. </p>
  133. </article>
  134. </section>
  135. <script src="../scripts/linenumber.js"></script>
  136. <script src="../scripts/page.js"></script>
  137. </body>
  138. </html>
粤ICP备19079148号