# Computes the modulus of the CM vector

### Description

The Centre of Mass vector starts from the tree base and points towards the CM. Its modulus is the distance between the CM (x, y, z) and tree base (0, 0, 0).

### Usage

1 | ```
centreOfMassModulus(object)
``` |

### Arguments

`object` |
an object of |

### Value

a real number

### Note

This function is mainly needed to compute the moment of the tree. The CM modulus is the tree moment arm.

### See Also

Other Stabilization: `anchorRange`

,
`centreOfMassAngle`

,
`getPlinthForce`

,
`logPathSelection`

,
`toCartesianXYZ`

### Examples

1 2 3 4 5 6 7 8 9 10 | ```
library(treecm)
data(stonePine1TreeData)
vectors <- treeVectors(stonePine1TreeData)
CM <- centreOfMass(object=vectors)
print(centreOfMassModulus(CM))
treeMoment <- buildTreeMomentObject(
centreOfMassModulus(CM)
, treeTotalBiomass(stonePine1TreeData)
, centreOfMassAngle(CM)
)
``` |