[][src]Function smallpt::nalgebra::try_normalize

pub fn try_normalize<V>(v: &V, min_norm: <V as VectorSpace>::Field) -> Option<V> where
    V: NormedSpace, 
Deprecated:

use Matrix::try_normalize or Quaternion::try_normalize instead

Computes the normalized version of the vector v or returns None if its norm is smaller than min_norm.

Deprecated

Use these methods instead:

  • [Matrix::try_normalize]
  • [Quaternion::try_normalize]

Or, use NormedSpace::try_normalize.