Learn R Programming

treecm (version 1.2.2)

centreOfMassAngle: Returns the angle between CM modulus and the tree weight vector

Description

This function is mainly needed to compute the moment of the tree. The angle is need to compute the projection of the tree weight normal to the CM modulus

Usage

centreOfMassAngle(object)

Arguments

object
an object of CM class

Value

a real number in radians

See Also

Other Stabilization: anchorRange, centreOfMassModulus, getPlinthForce, logPathSelection, toCartesianXYZ

Examples

Run this code
library(treecm)
data(stonePine1TreeData)
vectors <- treeVectors(stonePine1TreeData)
CM <- centreOfMass(vectors)
print(centreOfMassAngle(CM))
treeMoment <- buildTreeMomentObject(
 centreOfMassModulus(CM)
 , treeTotalBiomass(stonePine1TreeData)
 , centreOfMassAngle(CM)
 )

Run the code above in your browser using DataLab