getEdgeVertex method

void getEdgeVertex(
  1. int edgeIndex,
  2. int firstOrSecond,
  3. Vec3 vertexStore
)

Get an edge vertex @param firstOrSecond 0 or 1, depending on which one of the vertices you need. @param vertexStore Where to store the result

Implementation

void getEdgeVertex(int edgeIndex, int firstOrSecond, Vec3 vertexStore) {
  final vertexIndex = edges[edgeIndex * 2 + firstOrSecond];
  getVertex(vertexIndex, vertexStore);
}