mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
f32: use value receiver for Split method on Affine2D
Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu>
This commit is contained in:
committed by
Elias Naur
parent
d76b4272aa
commit
3b1effb7f5
+1
-1
@@ -123,7 +123,7 @@ func (a Affine2D) Elems() (sx, hx, ox, hy, sy, oy float32) {
|
|||||||
|
|
||||||
// Split a transform into two parts, one which is pure offset and the
|
// Split a transform into two parts, one which is pure offset and the
|
||||||
// other representing the scaling, shearing and rotation part.
|
// other representing the scaling, shearing and rotation part.
|
||||||
func (a *Affine2D) Split() (srs Affine2D, offset Point) {
|
func (a Affine2D) Split() (srs Affine2D, offset Point) {
|
||||||
return Affine2D{
|
return Affine2D{
|
||||||
a: a.a, b: a.b, c: 0,
|
a: a.a, b: a.b, c: 0,
|
||||||
d: a.d, e: a.e, f: 0,
|
d: a.d, e: a.e, f: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user