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)


zarquon42b/Morpho documentation built on Jan. 28, 2024, 2:11 p.m.