1
Python / [Solved] Transform bug
« 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 beCode: [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.