MCPcopy Create free account
hub / github.com/Jack-Cherish/python-spider / WrapAngle

Function WrapAngle

bilibili/xml2ass.py:507–508  ·  view source on GitHub ↗
(deg)

Source from the content-addressed store, hash-verified

505# Result: (rotX, rotY, rotZ, shearX, shearY)
506def ConvertFlashRotation(rotY, rotZ, X, Y, FOV=math.tan(2*math.pi/9.0)):
507 def WrapAngle(deg):
508 return 180-((180-deg)%360)
509 def CalcPerspectiveCorrection(alpha, X, FOV=FOV):
510 alpha = WrapAngle(alpha)
511 if FOV is None:

Callers 2

ConvertFlashRotationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected