summary.bezierArcLength: Summary of a Bezier arc length estimation

Description Usage Arguments Value Author(s) See Also Examples

Description

Prints a summary of the output of bezierArcLength (a list of class "bezierArcLength"). This includes the change in arc length once arc length estimation is stopped, the number of iterations until convergence and the number of points along the Bezier used to estimate arc length. If the input is a Bezier spline then the results are printed separately for each curve in the spline. See bezierArcLength for details.

Usage

1
2
## S3 method for class 'bezierArcLength'
summary(object, ...)

Arguments

object

a list of class "bezierArcLength" (the output of bezierArcLength).

...

further arguments passed to or from other methods.

Value

a NULL value.

Author(s)

Aaron Olsen

See Also

bezierArcLength, bezier

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## BEZIER CURVE ARC LENGTH ESTIMATION ##
## BEZIER CURVE CONTROL POINTS
p <- matrix(c(0,0, 1,4, 2,2), nrow=3, ncol=2, byrow=TRUE)

## FIND THE ARC LENGTH ALONG THE BEZIER CURVE
bcurve <- bezierArcLength(p=p, t1=0, t2=1)

## PRINT SUMMARY
print(summary(bcurve))


## BEZIER SPLINE ARC LENGTH ##
## BEZIER SPLINE CONTROL POINTS
p <- matrix(c(0,0, 1,4, 2,2, 3,0, 4,4), nrow=5, ncol=2, byrow=TRUE)

## FIND THE ARC LENGTH ALONG THE BEZIER SPLINE
## HERE t2 = 1 SO ARC LENGTH IS ONLY CALCULATED FOR THE
##   FIRST BEZIER CURVE OF THE SPLINE
bspline <- bezierArcLength(p=p, t1=0, t2=2, deg=2)

## PRINT SUMMARY
print(summary(bspline))

Example output

bezierArcLength Summary
	Arc length: 4.083686
	Slope break: 9.314018e-07; relative minimum slope reached
	Number of iterations: 8
	n: 85

bezierArcLength Summary
	Arc length: 8.167371
	Slope break:
		1) 9.314018e-07; relative minimum slope reached
		2) 9.314018e-07; relative minimum slope reached
	Number of iterations:
		1) 8
		2) 8
	n:
		1) 85
		2) 85

bezier documentation built on May 1, 2019, 9:46 p.m.