seems like we could save a line here by using `glm::dot(temp, temp)` directly in the sqrtf?