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

Author Topic: [Solved] Transform bug  (Read 5379 times)

0 Members and 1 Guest are viewing this topic.

psorek

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
[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.
« Last Edit: October 29, 2013, 02:42:36 am by Sonkun »

Sonkun

  • Moderator
  • Full Member
  • *****
  • Posts: 241
    • View Profile
Re: Transform bug
« Reply #1 on: August 01, 2013, 06:04:34 pm »
Thanks!
Interested in using SFML with Python ? Try out its Python binding!

 

anything