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

edgelength

Lengths of grid edges


Description

This function will return the length of all edges in the specified grid object.

Usage

edgelength(gridObj, ...)

## S4 method for signature 'trigrid'
edgelength(gridObj, output = "distance")

Arguments

gridObj

(trigrid or {hexagrid}) A grid object.

...

Arguments passed to the class specific methods.

output

(character) The type of the output. "distance" will give back the distance in the metric that was fed to the function in the coordinates or the radius. "deg" will output the the distance in degrees, "rad" will do so in radians.

Value

A named numeric vector.

Examples

g <- trigrid(3)
edges <- edgelength(g, output="deg")
edges

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.