VertexList.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. <h1>[name]</h1>
  12. <div class="desc">
  13. A doubly linked list of vertices.
  14. </div>
  15. <h2>Constructor</h2>
  16. <h3>[name]()</h3>
  17. </div>
  18. <h2>Properties</h2>
  19. <h3>[property:Vertex head]</h3>
  20. <div>
  21. Reference to the first vertex of the linked list. Default is null.
  22. </div>
  23. <h3>[property:Vertex tail]</h3>
  24. <div>
  25. Reference to the last vertex of the linked list. Default is null.
  26. </div>
  27. <h2>Methods</h2>
  28. <h3>[method:Vertex first]()</h3>
  29. <div>Returns the head reference.</div>
  30. <h3>[method:Vertex last]()</h3>
  31. <div>Returns the tail reference.</div>
  32. <h3>[method:VertexList clear]()</h3>
  33. <div>Clears the linked list.</div>
  34. <h3>[method:VertexList insertBefore]( [page:Vertex target], [page:Vertex vertex] )</h3>
  35. [page:Vertex target] - The target vertex. It's assumed that this vertex belongs to the linked list.<br /><br />
  36. [page:Vertex vertex] - The vertex to insert.<br /><br />
  37. <div>Inserts a vertex <strong>before</strong> a target vertex.</div>
  38. <h3>[method:VertexList insertAfter]( [page:Vertex target], [page:Vertex vertex] )</h3>
  39. [page:Vertex target] - The target vertex. It's assumed that this vertex belongs to the linked list.<br /><br />
  40. [page:Vertex vertex] - The vertex to insert.<br /><br />
  41. <div>Inserts a vertex <strong>after</strong> a target vertex.</div>
  42. <h3>[method:VertexList append]( [page:Vertex vertex] )</h3>
  43. [page:Vertex vertex] - The vertex to append.<br /><br />
  44. <div>Appends a vertex to the end of the linked list.</div>
  45. <h3>[method:VertexList appendChain]( [page:Vertex vertex] )</h3>
  46. [page:Vertex vertex] - The head vertex of a chain of vertices.<br /><br />
  47. <div>Appends a chain of vertices where the given vertex is the head.</div>
  48. <h3>[method:VertexList remove]( [page:Vertex vertex] )</h3>
  49. [page:Vertex vertex] - The vertex to remove.<br /><br />
  50. <div>Removes a vertex from the linked list.</div>
  51. <h3>[method:VertexList removeSubList]( [page:Vertex a], [page:Vertex b] )</h3>
  52. [page:Vertex a] - The head of the sublist.<br /><br />
  53. [page:Vertex b] - The tail of the sublist.<br /><br />
  54. <div>Removes a sublist of vertices from the linked list.</div>
  55. <h3>[method:Boolean isEmpty]()</h3>
  56. <div>Returns true if the linked list is empty.</div>
  57. <h2>Source</h2>
  58. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  59. </body>
  60. </html>