triangle(at:)
The triangle definition at the specified index.
Declaration
func triangle(at index: Int) -> GKTriangleParameters
- index:
An index identifying the triangle. Must be less than the value of the Trianglecount property.
Return Value
A structure describing the specified triangle.
Discussion
This method provides valid results only after calling the triangulate() to create a mesh around the current configuration of obstacles. The information this method provides can be useful for drawing your own overlay UI to debug the graphs you create.