spacing: Spacing of cell centers

spacingR Documentation

Spacing of cell centers

Description

This function will return the distance between neighboring face centers.

Usage

spacing(x, ...)

## S4 method for signature 'trigrid'
spacing(x, degree = TRUE)

Arguments

x

(trigrid, hexagrid) Object.

...

Arguments of class-specific methods.

degree

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

Details

The value for every pair is given in either degrees or kilometers depending on degree.

Value

A named numeric vector, one value for every for every neighboring cell pair.

Examples

h <- hexagrid(3)
spacing(h)



icosa documentation built on Aug. 29, 2025, 5:16 p.m.