Merge pull request #44 from mcclure/no-dot-threshold

Remove DO_THRESHOLD check from quat.pow
This commit is contained in:
mcclure 2019-11-29 17:18:47 -05:00 committed by GitHub
commit 127935e0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,10 +177,6 @@ function quat.pow(a, s)
end
local dot = a.w
if dot > DOT_THRESHOLD then
return a:scale(s)
end
dot = min(max(dot, -1), 1)
local theta = acos(dot) * s