Skip to contents

Great circle distances between face centers and vertices

Usage

vertexradius(x, degree = TRUE)

Arguments

x

(trigrid or hexagrid) Object.

degree

(logical) Should the output be returned in degrees or in kóilometers?

Value

A numeric matrix that matches in structure with the @faces slot of the provided grid x. Distances measured on each face are in the same row.

Examples

# example grid
g <- trigrid(3)

# all vertexradius
vertrads <- vertexradius(g)

# face average
averages <- apply(vertrads, 1, mean, na.rm=TRUE)