diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index 5632752..57aa32f 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1414,11 +1414,11 @@ def llRot2Euler(r): 1.-2.*(r[0]*r[0]+r[2]*r[2]))) qy2 = r[1]*r[1] - return ( + return Vector(( math.atan2(2.*(r[0]*r[3]-r[1]*r[2]), 1.-2.*(r[0]*r[0]+qy2)), math.asin(y), math.atan2(2.*(r[2]*r[3]-r[0]*r[1]), 1.-2.*(r[2]*r[2]+qy2)) - ) + )) def llRot2Fwd(r): assert isrotation(r)