angle.calc {Morpho} | R Documentation |
calculate angle between two vectors
Description
calculates unsigned angle between two vectors
Usage
angle.calc(x, y)
Arguments
x |
numeric vector (or matrix to be interpreted as vector) |
y |
numeric vector (or matrix to be interpreted as vector) of same
length as |
Value
angle between x and y in radians.
Examples
#calculate angle between two centered and
# superimposed landmark configuration
data(boneData)
opa <- rotonto(boneLM[,,1],boneLM[,,2])
angle.calc(opa$X, opa$Y)
[Package Morpho version 2.12 Index]