Utils.VectorLength: The scalar length of a vector

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

The scalar length of a vector

Usage

1

Arguments

a

The vector

Value

Scalar length - think Pythagorus in 3D. Will "work" on vectors of any number of dimensions, although it should be noted it's designed for 3D space use.

See Also

Other utils: Utils.CrossProduct, Utils.DotProduct, Utils.UnitVector

Examples

1
2
  Utils.VectorLength(c(1,2,3))  # [1] 3.741657
  Utils.VectorLength(c(3,4,0))  # [1] 5

JerBoon/vecspace documentation built on May 26, 2019, 7:28 a.m.