bezier_integrals | R Documentation |
Various integrals over Bezier curves such as total arc length and bending energy
bezier_arclength(P, t1=0,t2=1,give=FALSE,...)
bezier_bending_energy(P, t1=0,t2=1, give=FALSE, power=2, ...)
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 |
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.
Robin K. S. Hankin
bezier_angle
P <- matrix(c(0, 1, 2, 2, 2, 0, 3, 2),4,2)
bezier_arclength(P)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.