Template Function t8_rescale(TVec&, const double)

Function Documentation

template<T8InputRange TVec>
static inline void t8_rescale(TVec &vec, const double new_length)

Rescale a vector to a new length.

Parameters:
  • vec[inout] An N-dimensional vector.

  • new_length[in] New length of the vector.