maths: be explicit in the computation type of Vec3::getNorm2 + friends
The result and computation types of Vec3<T>::getNorm2 were assumed to be T. This works fine for floating point types, but leads to overflow when the underlying vector is Vec3<int32_t>. This commit requires the caller to supply the result of the computation type as a template parameter to getNorm2.
Please register or sign in to comment