Description Usage Arguments Value See Also Examples
The scalar length of a vector
1 |
a |
The vector |
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.
Other utils: Utils.CrossProduct
,
Utils.DotProduct
,
Utils.UnitVector
1 2 | Utils.VectorLength(c(1,2,3)) # [1] 3.741657
Utils.VectorLength(c(3,4,0)) # [1] 5
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.