The issue seems to be a difference between CPP and Python versions.

The CPP version has 3 constructors for `Rect`, including a constructor
that accepts four positional arguments:

https://github.com/LaurentGomila/SFML/blob/master/include/SFML/Graphics/Rect.hpp#L67

The Python `Rectangle` class only supports the default constructor with
no arguments and the constructor with two keyword arguments.

        https://github.com/Sonkun/python-
sfml/blob/master/src/sfml/graphics.pyx#L111-L115

Inside the intersection method, an invocation of the four argument
constructor is called, which is most likely the reason this breaks in
python-sfml but not cpp SFML

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1400906

Title:
  rectangle intersects error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-sfml/+bug/1400906/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to