jeremyong/klein

Bug in `motor::operator=(translator t)`

Closed this issue · 2 comments

I believe there is a bug in this code:

    motor& KLN_VEC_CALL operator=(translator t) noexcept
    {
        p1_ = _mm_setzero_ps();
        p2_ = t.p2_;
        return *this;
    }

The rotator p1_ should be set to identity instead of zero.

Nice catch! Fixed

Thank you for confirming and fixing it!