bezier_integrals {knotR} | R Documentation |
Arcwise integrals over Bezier curves
Description
Various integrals over Bezier curves such as total arc length and bending energy
Usage
bezier_arclength(P, t1=0,t2=1,give=FALSE,...)
bezier_bending_energy(P, t1=0,t2=1, give=FALSE, power=2, ...)
Arguments
P |
Control points in the form of a 4 by 2 matrix with rows
corresponding to |
give |
Boolean, with |
power |
Function |
t1 , t2 |
In function |
... |
Further arguments passed to |
Details
These functions use numerical integration, specifically
integrate()
, between two specified points on a Bezier curve.
Function
bezier_bending_energy()
gives the and bending energy (\int R^{-1}ds
).Function
bezier_arclength()
gives the arc length.
Author(s)
Robin K. S. Hankin
See Also
Examples
P <- matrix(c(0, 1, 2, 2, 2, 0, 3, 2),4,2)
bezier_arclength(P)