Fixed Vector3d::normalize().

This commit is contained in:
Giulio Camuffo 2011-04-21 18:08:34 +02:00
parent 338de7fbcd
commit 09259203f7

View File

@ -114,7 +114,7 @@ public:
float len = sqrt(dotProduct(x(), y(), z()));
if (len != 0.0f) {
float t = 1.0f / len;
set(x() * t, y() * t, y() * t);
set(x() * t, y() * t, z() * t);
}
}