Interface ConstVertexList

All Known Implementing Classes:
VertexList

public interface ConstVertexList
Read-only access to an VertexList. (native type: const VertexList)
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Count how many vertices can be held in the currently allocated storage.
    boolean
    Test whether the list contains no vertices.
    get(int listIndex)
    Copy the vertex at the specified index.
    int
    Count how many vertices are in the list.
    Access a direct buffer containing all vertices in the list, in order.
  • Method Details

    • capacity

      int capacity()
      Count how many vertices can be held in the currently allocated storage. The list is unaffected.
      Returns:
      the number of vertices (≥0)
    • empty

      boolean empty()
      Test whether the list contains no vertices. The list is unaffected.
      Returns:
      true if empty, otherwise false
    • get

      Float3 get(int listIndex)
      Copy the vertex at the specified index. The list is unaffected.
      Parameters:
      listIndex - the index from which to get the vertex
      Returns:
      the vertex
    • size

      int size()
      Count how many vertices are in the list. The list is unaffected.
      Returns:
      the number of vertices (≥0)
    • toDirectBuffer

      FloatBuffer toDirectBuffer()
      Access a direct buffer containing all vertices in the list, in order. No further resize() or set() is allowed.
      Returns:
      the pre-existing Buffer, flipped but possibly not rewound