Return the given angle normalized to -90 < *a* <= 90 degrees.
(a)
| 31 | |
| 32 | |
| 33 | def _norm_text_angle(a): |
| 34 | """Return the given angle normalized to -90 < *a* <= 90 degrees.""" |
| 35 | a = (a + 180) % 180 |
| 36 | if a > 90: |
| 37 | a = a - 180 |
| 38 | return a |
| 39 | |
| 40 | |
| 41 | def get_dir_vector(zdir): |
no outgoing calls
no test coverage detected
searching dependent graphs…