Description Usage Arguments Value Note Author(s) See Also Examples
Compute convex hull of intersection of two sets of points
1 2  intersectn(ps1, ps2, tol = 0, return.chs = TRUE, options = "Tv",
fp = NULL, autoscale = FALSE)

ps1 
First set of points 
ps2 
Second set of points 
tol 
Tolerance used to determine if a feasible point lies within the convex hulls of both points and to round off the points generated by the halfspace intersection, which sometimes produces points very close together. 
return.chs 
If 
options 
Options passed to 
fp 
Coordinates of feasible point, i.e. a point known to lie
in the hulls of 
autoscale 
Experimental in v0.4.2 Automatically scale the points to lie in a sensible numeric range. May help to correct some numerical issues. 
List containing named elements: ch1
, the convex
hull of the first set of points, with volumes, areas and normals
(see convhulln
; ch2
, the convex hull of the
first set of points, with volumes, areas and normals; ps
,
the intersection points of convex hulls ch1
and
ch2
; and ch
, the convex hull of the intersection
points, with volumes, areas and normals.
intersectn
was introduced in geometry 0.4.0, and is
still under development. It is worth checking results for
unexpected behaviour.
David Sterratt
convhulln
, halfspacen
,
inhulln
, feasible.point
1 2 3 4 5 6 7 
Volume of 1st convex hull: 1
Volume of 2nd convex hull: 1
Volume of intersection convex hull: 0.125
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.