dummycoor: Fictitious endpoint of a semi-infinite Voronoi edge

dummycoorR Documentation

Fictitious endpoint of a semi-infinite Voronoi edge

Description

Computes a fictitious endpoint in the outward direction of a semi-infinite Voronoi edge, for plotting purposes.

Usage

dummycoor(tri.obj, l1, l2, m, away)

Arguments

tri.obj

Sample coordinates as a two-column matrix or as a list with numeric components x and y.

l1

Numeric vector of length two containing the coordinates of the first endpoint of a Delaunay edge on the convex hull.

l2

Numeric vector of length two containing the coordinates of the second endpoint of that Delaunay edge.

m

Numeric vector of length two containing the circumcentre of the adjacent Delaunay triangle.

away

Positive numeric distance used to place the fictitious endpoint along the outward ray.

Details

A Delaunay edge on the convex hull corresponds to a semi-infinite Voronoi edge whose finite endpoint is the circumcentre m. The direction is perpendicular to the Delaunay edge joining l1 and l2. The outward orientation is selected using the centroid of the sample coordinates in tri.obj.

The fictitious endpoint is placed along the ray at a distance depending on away and the projection of the Delaunay edge midpoint. This ensures that the plotting endpoint extends beyond that projection. The returned point is not an actual Voronoi vertex.

Value

A numeric vector of length two giving the fictitious endpoint of the semi-infinite Voronoi ray.

See Also

delvor.

Examples

xy <- rbind(c(0, 0), c(1, 0), c(0, 1))
dummycoor(xy, c(0, 0), c(1, 0), c(0.5, 0.5), away = 2)

alphahull documentation built on Oct. 30, 2026, 1:07 a.m.