matlantis_features.features.elasticity.utils.to_unit_vec(a: ndarray) ndarray#

Normalize the 3D vector.

Parameters

a (np.ndarray) – Input 3D vector of (3,) shape.

Returns

Normarized 3D vector.

Return type

np.ndarray