Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix glm::is_null epsilon test (#1350)
The existing implementation compares each component to zero with an epsilon; effectively `glm::all(glm::is_comp_null(v, epsilon))`. This probably isn't the desired semantics when calling `glm::is_null`; rather, we want to determine if the magnitude of the vector is within `epsilon` units of zero. It's the question of circle versus square. This behavior matches that of OpenGL Mathematics.
- Loading branch information