SFML community forums

Bindings - other languages => Python => Topic started by: psorek on July 31, 2013, 04:17:49 pm

Title: [Solved] Transform bug
Post by: psorek on July 31, 2013, 04:17:49 pm
Code: [Select]
from sfml import *
a=Rectangle(Vector2(20,10), Vector2(200,100))
b=Transformable()
b.move(Vector2(500,200))
c=b.transform.transform_rectangle(a)
print(a, "\n", c, sep="")
my output is:
Code: [Select]
20x, 10y, 200w, 100h
210.0x, 520.0y, 200.0w, 100.0h
and it should be
Code: [Select]
20x, 10y, 200w, 100h
520.0x, 210.0y, 200.0w, 100.0h

It looks like a bug for me. What do you think?

<update> just found a bug in the source code, pull request with fix sent.
Title: Re: Transform bug
Post by: Sonkun on August 01, 2013, 06:04:34 pm
Thanks!