bezier_find_length {knotR} | R Documentation |
Solve for arclength
Description
Finds the value of the Bezier parameter t
that corresponds to a
given arclength from the start of a Bezier curve
Usage
bezier_find_length(P, len, from = 0, increasing = TRUE, give = FALSE, ...)
Arguments
P |
Control points in the form of a 4 by 2 matrix with rows
corresponding to |
from |
Point from which to start measuring arc length |
len |
Arc length |
increasing |
Boolean, with default |
give |
Boolean, with |
... |
Further arguments passed to |
Details
The function just uses uniroot()
to find the appropriate value
of tee
.
Author(s)
Robin K. S. Hankin
See Also
Examples
P <- matrix(c(1, 3, 6, 4, 7, 3, 2, 2),ncol=2)
bezier_find_length(P,5)
[Package knotR version 1.0-4 Index]