• David Flynn's avatar
    maths: be explicit in the computation type of Vec3::getNorm2 + friends · ee064ec9
    David Flynn authored
    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.
    ee064ec9