Correction on quaternion initialization values

a 0 0 0 0 quaternion is not valid
pull/287/head
arkeon 2014-05-27 11:26:55 +02:00
parent b2ac7b878f
commit 3acf60f5d7
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ template <typename TReal>
class aiQuaterniont
{
public:
aiQuaterniont() : w(), x(), y(), z() {}
aiQuaterniont() : w(1.0), x(), y(), z() {}
aiQuaterniont(TReal pw, TReal px, TReal py, TReal pz)
: w(pw), x(px), y(py), z(pz) {}