Learn R Programming

Morpho (version 2.12)

angle.calc: calculate angle between two vectors

Description

calculates unsigned angle between two vectors

Usage

angle.calc(x, y)

Value

angle between x and y in radians.

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

Examples

Run this code

#calculate angle between two centered and
# superimposed landmark configuration
data(boneData)
opa <- rotonto(boneLM[,,1],boneLM[,,2])
angle.calc(opa$X, opa$Y)

Run the code above in your browser using DataLab