angle.calc: calculate angle between two vectors

View source: R/angle.calc.r

angle.calcR 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 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 documentation built on June 22, 2024, 7:19 p.m.