1
This commit is contained in:
parent
b5c3f69440
commit
990fe6dd16
@ -34,10 +34,10 @@ void Vector2D::Normalize()
|
||||
{
|
||||
#if 1
|
||||
glm::vec2 v = glm::normalize(glm::vec2(x, y));
|
||||
assert(!isnan(v[0]));
|
||||
assert(!isnan(v[1]));
|
||||
x = v[0];
|
||||
y = v[1];
|
||||
assert(!isnan(x));
|
||||
assert(!isnan(x));
|
||||
#else
|
||||
Eigen::Vector2f v(x, y);
|
||||
v.normalize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user