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

pos

Position of face centers and vertices on a grid


Description

This function will retrieve the position of a vertex or a face on a hexagrid or trigrid object.

Usage

pos(gridObj, names, output = "polar")

Arguments

gridObj

a (hexagrid or trigrid) Icosahedral grid object.

names

(character) Vector of the names that are to be looked up.

output

(character) The coordinate system in which the names are to be shown: use "polar" for longitude-latitude and "cartesian" for XYZ output.

Details

Vertex and face names can be mixed in a single names argument.

Value

A numeric matrix.

Examples

g <- trigrid(c(4,4))
pos(g, c("F2", "P6", "dummyname"))

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.