Instance Method
nearestPointOnPath:pathTime: nearestPointOnPath:pathTime: nearestPointOnPath_pathTime_
Finds the point on the path nearest a point.
Not available in Swift.
Declaration
- (NSPoint) nearestPointOnPath:(NSPoint) loc pathTime:(CGFloat *) pathTime;Declaration
nearestPointOnPath_pathTime_(loc: NSPoint, pathTime: float) -> NSPointParameters
pathTimeOn return, the path time of the nearest point.
Return Value
The nearest point.
Discussion
A path time identifies a position within a path segment. Its integer part is the index of the ending on-curve node, and its fractional part is the position within the segment.
See Also
Path Time
The point at a path time.
Returns the on-curve node nearest a path time.