getEdge

abstract fun getEdge(index: Int): Segment2D<Euclidean2DPosition>

Depending on the implementation, this may be faster than edges.get(index).

Parameters

index

indicates which edge to get: edge i connects vertices i and i+1 (with respect to the ordering of vertices used in vertices)