LineCurve3.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>LineCurve3 - 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">LineCurve3</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A curve representing a 3D line segment.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="LineCurve3" translate="no">new <a href="#LineCurve3">LineCurve3</a><span class="signature">( v1 : <span class="param-type">Vector3</span>, v2 : <span class="param-type">Vector3</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new line curve.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name"><code>v1</code></td>
  30. <td class="description last"><p>The start point.</p></td>
  31. </tr>
  32. <tr>
  33. <td class="name"><code>v2</code></td>
  34. <td class="description last"><p>The end point.</p></td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <h2 class="subsection-title">Properties</h2>
  41. <div class="member">
  42. <h3 class="name" id="isLineCurve3" translate="no">.<a href="#isLineCurve3">isLineCurve3</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  43. <div class="description">
  44. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  45. </div>
  46. </div>
  47. <div class="member">
  48. <h3 class="name" id="v1" translate="no">.<a href="#v1">v1</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
  49. <div class="description">
  50. <p>The start point.</p>
  51. </div>
  52. </div>
  53. <div class="member">
  54. <h3 class="name" id="v2" translate="no">.<a href="#v2">v2</a><span class="type-signature"> : <a href="Vector2.html">Vector2</a></span> </h3>
  55. <div class="description">
  56. <p>The end point.</p>
  57. </div>
  58. </div>
  59. <h2 class="subsection-title">Methods</h2>
  60. <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">Vector3</span> )</span><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
  61. <div class="method">
  62. <div class="description">
  63. <p>Returns a point on the line.</p>
  64. </div>
  65. <table class="params">
  66. <tbody>
  67. <tr>
  68. <td class="name"><code>t</code></td>
  69. <td class="description last"><p>A interpolation factor representing a position on the line. Must be in the range <code>[0,1]</code>.</p></td>
  70. </tr>
  71. <tr>
  72. <td class="name"><code>optionalTarget</code></td>
  73. <td class="description last"><p>The optional target vector the result is written to.</p></td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. <dl class="details">
  78. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Curve.html#getPoint">Curve#getPoint</a></dt>
  79. </dl>
  80. <dl class="details">
  81. <dt class="tag-returns"><strong>Returns:</strong> The position on the line.</dt>
  82. </dl>
  83. </div>
  84. <h2 class="subsection-title">Source</h2>
  85. <p>
  86. <a href="https://github.com/mrdoob/three.js/blob/master/src/extras/curves/LineCurve3.js" target="_blank" rel="noopener" translate="no">src/extras/curves/LineCurve3.js</a>
  87. </p>
  88. </article>
  89. </section>
  90. <script src="../scripts/linenumber.js"></script>
  91. <script src="../scripts/page.js"></script>
  92. </body>
  93. </html>
粤ICP备19079148号