VertexList.html 2.6 KB

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