unitvector: Normalize vectors to unit length

Description Usage Arguments Value Author(s) See Also

View source: R/unitvector.R

Description

Compute the unit vectors for for a matrix of non-normalised vectors

Usage

1

Arguments

x

m-element vector or n-by-m matrix x[1:n,1:m] representing n m-element vectors

Value

Returns a data type identical to x, but with normalised vectors. Zero-vectors are returned for vectors of length zero.

Author(s)

Danail Obreschkow

See Also

vectornorm


physx documentation built on Feb. 3, 2022, 5:08 p.m.

Related to unitvector in physx...