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)

adamkocsis/icosa documentation built on Aug. 20, 2024, 1:35 a.m.