Declaration

- (NSPoint) unitVectorAtNodeAtIndex:(NSInteger) nodeIdx
                          direction:(int) direction;

Declaration

unitVectorAtNodeAtIndex_direction_(
    nodeIdx: int,
    direction: int
) -> NSPoint

Discussion

Nonnegative direction values use following nodes. Negative direction values use preceding nodes.

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

See Also

Tangents