Description Usage Arguments Details Author(s) See Also Examples
Finds the value of the Bezier parameter t that corresponds to a given arclength from the start of a Bezier curve
1 | bezier_find_length(P, len, from = 0, increasing = TRUE, give = FALSE, ...)
|
P |
Control points in the form of a 4 by 2 matrix with rows corresponding to P_0 to P_3 |
from |
Point from which to start measuring arc length |
len |
Arc length |
increasing |
Boolean, with default |
give |
Boolean, with |
... |
Further arguments passed to |
The function just uses uniroot()
to find the appropriate value
of tee
.
Robin K. S. Hankin
1 2 | P <- matrix(c(1, 3, 6, 4, 7, 3, 2, 2),ncol=2)
bezier_find_length(P,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.