So in lumberyard, we have 5 different length fucntion. We have AZ::Vector3::GetLength
, AZ::Vector3::GetLengthApprox
, AZ::Vector3::GetLengthExact
, and AZ::Vector3::GetLengthSq
. The top three different in how accurate, and fast those calculation. Most of the time, I use AZ::Vector3::GetLengthApprox
for things that I do in the OnTick events, since it seem to be faster than both AZ::Vector3::GetLength
and AZ::Vector3::GetLengthSq
, but if it something one off, or I need high accuracy, I’ll use AZ::Vector3::GetLengthExact
. The funny thing is that those function dont return a float but they return VectorFloat.