Fix typo: a minus sign

This commit is contained in:
Star Brilliant 2014-04-29 21:50:05 +08:00
parent 996839a490
commit 344ee7c867

View File

@ -508,7 +508,7 @@ def GetZoomFactor(SourceSize, TargetSize):
# Result: (rotX, rotY, rotZ, shearX, shearY)
def ConvertFlashRotation(rotY, rotZ, X, Y, FOV=math.tan(2*math.pi/9.0)):
def WrapAngle(deg):
return 180-((180+deg)%360)
return 180-((180-deg)%360)
def CalcPerspectiveCorrection(alpha, X, FOV=FOV):
alpha = WrapAngle(alpha)
if FOV is None: