Skip to contents

Converts face plane coordinates back to geographic coordinates.

Usage

hexify_inverse(
  x,
  y,
  face,
  projection = c("isea", "fuller", "ivea", "ak", "akw"),
  polyhedron = c("icosahedron", "octahedron", "tetrahedron")
)

Arguments

x

X coordinate on face plane

y

Y coordinate on face plane

face

Face index (0-19 on the icosahedron)

projection

Face projection: "isea" (Snyder's equal-area projection), "ivea" (van Leeuwen and Strebe's vertex-oriented equal-area projection), "fuller" (Fuller's projection, defined on the icosahedron only), "ak" (Kaseorg's octahedral projection) or "akw" (Kaseorg's with Hex9's trained warp), both defined on the octahedron only

polyhedron

The solid: "icosahedron" (default), "octahedron" or "tetrahedron", in its default orientation. Snyder (1992) gives his equal-area projection for each; its angular distortion grows with the faces' size.

Value

Named numeric vector: c(lon_deg, lat_deg)

Examples

coords <- hexify_inverse(0.5, 0.3, face = 2)