float3(at:)
Returns the 3D point at the specified index in the path’s list of vertices.
Declaration
func float3(at index: Int) -> vector_float3Parameters
- 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 2D path, this method is still functional, but returns 3D vectors whose z-component is always zero.