angle3d: Calculate the zenith angle from xyz coordinates

angle3dR Documentation

Calculate the zenith angle from xyz coordinates

Description

Calculate a zenith angle between two segments from 3D (i.e X,Y,Z) coordinates

Usage

angle3d(o, a, b)

Arguments

o

3D coordinates of the common point of the two segments

a

3D coordinates of the other point of segment a

b

3D coordinates of the other point of segment b

Value

The angle in degree

Examples

origin=c(0,0,0)
a=c(0,0,1)
b=c(1,0,0)

angle3d(o=origin,a=a,b=b)


aRchi documentation built on Sept. 3, 2022, 9:06 a.m.