Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

centers

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

Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

v0.10.1
GPL-3
Authors
Adam T. Kocsis [aut, cre]
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.