Merge pull request #31 from mcclure/quat-mult

Clarify handedness of quaternion multiplication in documentation
This commit is contained in:
Colby Klein 2018-01-30 11:50:57 -08:00 committed by GitHub
commit cf704d760e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ end
--- Multiply two quaternions.
-- @tparam quat a Left hand operand
-- @tparam quat b Right hand operand
-- @treturn quat out
-- @treturn quat quaternion equivalent to "apply b, then a"
function quat.mul(a, b)
return new(
a.x * b.w + a.w * b.x + a.y * b.z - a.z * b.y,