File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -245,13 +245,14 @@ cdef class Transform2D:
245
245
t.oy = self .muly(other.ox, other.oy)
246
246
return t
247
247
248
- def __imatmul__(self , Transform2D other ) -> None :
248
+ def __imatmul__(self , Transform2D other ) -> Transform2D :
249
249
self.xx = other.tdotx(self .xx, self .xy)
250
250
self.xy = other.tdoty(self .xx, self .xy)
251
251
self.yx = other.tdotx(self .yx, self .yy)
252
252
self.yy = other.tdoty(self .yx, self .yy)
253
253
self.ox = other.mulx(self .ox, self .oy)
254
254
self.oy = other.muly(self .ox, self .oy)
255
+ return self
255
256
256
257
cdef inline py_float _determinant(self ) noexcept:
257
258
return self.xx * self.yy - self.xy * self.yx
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ cdef class Transform3D:
366
366
t.oz = self .mulz(other.ox, other.oy, other.oz)
367
367
return t
368
368
369
- def __imatmul__(self , Transform3D other ) -> None :
369
+ def __imatmul__(self , Transform3D other ) -> Transform3D :
370
370
self.xx = other.tdotx(self .xx, self .xy, self .xz)
371
371
self.xy = other.tdoty(self .xx, self .xy, self .xz)
372
372
self.xz = other.tdotz(self .xx, self .xy, self .xz)
@@ -379,6 +379,7 @@ cdef class Transform3D:
379
379
self.ox = other.mulx(self .ox, self .oy, self .oz)
380
380
self.oy = other.muly(self .ox, self .oy, self .oz)
381
381
self.oz = other.mulz(self .ox, self .oy, self .oz)
382
+ return self
382
383
383
384
cdef inline py_float _determinant(self ) noexcept:
384
385
return (self.xx * (self.yy * self.zz - self.yz * self.zy ) -
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ requires = ["setuptools", "cython"]
4
4
5
5
[project ]
6
6
name = " gdmath"
7
- version = " 1.4.0 "
7
+ version = " 1.4.1 "
8
8
description = " GdMath: a fast math library for game development"
9
9
readme = " README.md"
10
10
requires-python = " >= 3.9"
You can’t perform that action at this time.
0 commit comments