1
0

LineCurve3.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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"><a href="Vector3.html">Vector3</a></span>, v2 : <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 line curve.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>v1</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>v2</strong>
  39. </td>
  40. <td class="description last">
  41. <p>The end point.</p>
  42. </td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. <h2 class="subsection-title">Properties</h2>
  49. <div class="member">
  50. <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>
  51. <div class="description">
  52. <p>This flag can be used for type testing.</p>
  53. <p>Default is <code>true</code>.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <h3 class="name" id="v1" translate="no">.<a href="#v1">v1</a><span class="type-signature"> : <a href="Vector3.html">Vector3</a></span> </h3>
  58. <div class="description">
  59. <p>The start point.</p>
  60. </div>
  61. </div>
  62. <div class="member">
  63. <h3 class="name" id="v2" translate="no">.<a href="#v2">v2</a><span class="type-signature"> : <a href="Vector2.html">Vector2</a></span> </h3>
  64. <div class="description">
  65. <p>The end point.</p>
  66. </div>
  67. </div>
  68. <h2 class="subsection-title">Methods</h2>
  69. <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>
  70. <div class="method">
  71. <div class="description">
  72. <p>Returns a point on the line.</p>
  73. </div>
  74. <table class="params">
  75. <tbody>
  76. <tr>
  77. <td class="name">
  78. <strong>t</strong>
  79. </td>
  80. <td class="description last">
  81. <p>A interpolation factor representing a position on the line. Must be in the range <code>[0,1]</code>.</p>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td class="name">
  86. <strong>optionalTarget</strong>
  87. </td>
  88. <td class="description last">
  89. <p>The optional target vector the result is written to.</p>
  90. </td>
  91. </tr>
  92. </tbody>
  93. </table>
  94. <dl class="details">
  95. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Curve.html#getPoint">Curve#getPoint</a></dt>
  96. </dl>
  97. <dl class="details">
  98. <dt class="tag-returns"><strong>Returns:</strong> The position on the line.</dt>
  99. </dl>
  100. </div>
  101. <h2 class="subsection-title">Source</h2>
  102. <p>
  103. <a href="https://github.com/mrdoob/three.js/blob/master/src/extras/curves/LineCurve3.js" translate="no" target="_blank" rel="noopener">src/extras/curves/LineCurve3.js</a>
  104. </p>
  105. </article>
  106. </section>
  107. <script src="../scripts/linenumber.js"></script>
  108. <script src="../scripts/page.js"></script>
  109. </body>
  110. </html>
粤ICP备19079148号