excessive / cpml

Cirno's Perfect Math Library: Just about everything you need for 2D/3D games. Hopefully.

Home Page:https://excessive.github.io/cpml/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quat.from_direction returning un-normalized quaternions

snowkittykira opened this issue · comments

quat.from_direction is returning un-normalized quaternions:

for example:
print (quat.from_direction(vec3.unit_x))
prints
(+0.000,+1.000,+0.000,+1.000)