Skip to main content

vector_normalize

vector_normalize(result, data, [length])

Assuming the input is an N-dimension vector, normalizes the vector to magnitude of 1

Kind: global function

ParamTypeDescription
resultArray.<number> | Float32Array | Float64Array
dataArray.<number> | Float32Array | Float64Array
[length]numbernumber of dimensions