LengthSq#

template<typename T>
inline T::value_type LengthSq(const T v)#

Computes the squared length of a vector.

More efficient than Length() when only comparing lengths

Template Parameters:

T – Vector type that supports Dot() function

Parameters:

v[in] Vector to compute squared length for

Returns:

Squared length of the vector