getVertex method

Vector2 getVertex(
  1. int index
)

Get a vertex by index. Used by Distance.

Implementation

Vector2 getVertex(int index) {
  assert(0 <= index && index < _count);
  return vertices[index];
}