Learn R Programming

hexify (version 0.3.10)

hexify_forward: Forward Snyder projection

Description

Projects geographic coordinates onto the icosahedron, returning face index and planar coordinates (tx, ty).

Usage

hexify_forward(lon, lat)

Value

Named numeric vector: c(face, tx, ty)

Arguments

lon

Longitude in degrees

lat

Latitude in degrees

Details

tx and ty are normalized coordinates within the triangular face, typically in range [0, 1].

See Also

Other projection: hexify_build_icosa(), hexify_face_centers(), hexify_forward_to_face(), hexify_get_precision(), hexify_inverse(), hexify_projection_stats(), hexify_set_precision(), hexify_set_verbose(), hexify_which_face()

Examples

Run this code
result <- hexify_forward(16.37, 48.21)
# result["face"], result["icosa_triangle_x"], result["icosa_triangle_y"]

Run the code above in your browser using DataLab