float2(at:)
Returns the 2D point at the specified index in the path’s list of vertices.
Declaration
func float2(at index: Int) -> vector_float2Parameters
- index:
The index of the vertex to return, between
0and the Numpoints value.
Return Value
The vertex at the specified index.
Discussion
You define a path’s vertices when creating it, either directly with the initWithFloat3Points:count:radius:cyclical: initializer or indirectly with the init(graphNodes:radius:) initializer.
If the path is a 3D path, this method is still functional but returns only 2D vectors, ignoring the z-component of each point on the path.