bezier_find_length: Solve for arclength

Description Usage Arguments Details Author(s) See Also Examples

Description

Finds the value of the Bezier parameter t that corresponds to a given arclength from the start of a Bezier curve

Usage

1
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 P_0 to P_3

from

Point from which to start measuring arc length

len

Arc length

increasing

Boolean, with default TRUE meaning to measure length towards the end, andFALSE meaning to measure in the opposite direction

give

Boolean, with TRUE meaning to return details from uniroot() and default FALSE meaning to give just the position on the curve

...

Further arguments passed to uniroot()

Details

The function just uses uniroot() to find the appropriate value of tee.

Author(s)

Robin K. S. Hankin

See Also

bezier_integral

Examples

1
2
P <- matrix(c(1, 3, 6, 4, 7, 3, 2, 2),ncol=2)
bezier_find_length(P,5)

knotR documentation built on May 1, 2019, 9:10 p.m.