Skip to contents

Helper function for the transformation from PoR to geographical coordinate system or vice versa

Usage

geographical_to_PoR_quat(x, PoR)

PoR_to_geographical_quat(x, PoR)

Arguments

x, PoR

two-column vectors containing the lat and lon coordinates

Value

two-element numeric vector

Examples

ep.geo <- c(20, 33)
q.geo <- c(10, 45)
q.por <- geographical_to_PoR_quat(q.geo, ep.geo)
q.por
#> [1] 74.70603 50.91863
PoR_to_geographical_quat(q.por, ep.geo)
#> [1] 10 45