Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

angle.calc

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 x

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)

Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.