Declaration

- (NSPoint) unitVectorAtNodeAtIndex:(NSInteger) nodeIdx;

Declaration

unitVectorAtNodeAtIndex_(nodeIdx: int) -> NSPoint

Discussion

For the final node of an open path, the vector uses preceding nodes. Otherwise, the vector uses following nodes.

Returns a point whose x value is NSNotFound when no tangent can be determined.

See Also

Tangents