collada.util.toUnitVec

collada.util.toUnitVec(vec)

Converts the given vector to a unit vector

Parameters

vec (numpy.array) – The vector to transform to unit length

Return type

numpy.array