centers: The face centers of an icosahedral grid object

centersR Documentation

The face centers of an icosahedral grid object

Description

Shorthand function to return the @faceCenters slot of an icosahedral grid or a grid linked to a facelayer.

Usage

centers(x, ...)

## S4 method for signature 'trigrid'
centers(x, output = "polar")

## S4 method for signature 'facelayer'
centers(x, output = "polar")

Arguments

x

(trigrid, hexagrid or facelayer). The grid or linked data layer object.

...

Arguments passed to the class specific methods.

output

(character) The coordinate system of the output. Either "polar" or "cartesian".

Value

The coordinates of the face centers as a numeric matrix.

Examples

a <- trigrid()
centers(a)

icosa documentation built on March 31, 2023, 8:33 p.m.