Remove redundant inline imports

Since the addition of `DecomposedTransform`, we have had a top-level
import of `math` to depend on.
This commit is contained in:
Harry Dalton 2025-01-03 13:34:23 +00:00 committed by Behdad Esfahbod
parent 0b3ac6e9ae
commit 2865d19ff0

View File

@ -253,8 +253,6 @@ class Transform(NamedTuple):
<Transform [0 1 -1 0 0 0]>
>>>
"""
import math
c = _normSinCos(math.cos(angle))
s = _normSinCos(math.sin(angle))
return self.transform((c, s, -s, c, 0, 0))
@ -269,8 +267,6 @@ class Transform(NamedTuple):
<Transform [1 0 1 1 0 0]>
>>>
"""
import math
return self.transform((1, math.tan(y), math.tan(x), 1, 0, 0))
def transform(self, other):