powered by
Calculate a zenith angle between two segments from 3D (i.e X,Y,Z) coordinates
angle3d(o, a, b)
The angle in degree
3D coordinates of the common point of the two segments
3D coordinates of the other point of segment a
3D coordinates of the other point of segment b
origin=c(0,0,0) a=c(0,0,1) b=c(1,0,0) angle3d(o=origin,a=a,b=b)
Run the code above in your browser using DataLab