Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - psorek

Pages: [1]
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 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.

Pages: [1]
anything