por_transformation_quat: Conversion between PoR to geographical coordinate system...

por_transformation_quatR Documentation

Conversion between PoR to geographical coordinate system using quaternions

Description

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
PoR_to_geographical_quat(q.por, ep.geo)

tectonicr documentation built on Sept. 11, 2024, 6:05 p.m.