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

Author Topic: Why don't you provide operator== and != of Vector2f, i, u?  (Read 4088 times)

0 Members and 1 Guest are viewing this topic.

popotan997

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Why don't you provide operator== and != of Vector2f, i, u?
« on: November 29, 2014, 01:19:18 am »
Operator== (and !=) of Vector2f, i, u are useful.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Why don't you provide operator== and != of Vector2f, i, u?
« Reply #1 on: November 29, 2014, 03:00:01 am »
Just so you know, SFML does provide these:
https://github.com/SFML/SFML/blob/master/include/SFML/System/Vector2.hpp#L233
https://github.com/SFML/SFML/blob/master/include/SFML/System/Vector2.hpp#L248

If these operators are in fact missing, it looks like it's the .NET binding.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Why don't you provide operator== and != of Vector2f, i, u?
« Reply #2 on: November 29, 2014, 08:42:05 am »
SFML / OS X developer

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Re: Why don't you provide operator== and != of Vector2f, i, u?
« Reply #3 on: December 04, 2014, 03:45:25 am »
hmm strange those operators should be there.  What's the actual error?
I have many ideas but need the help of others to find way to make use of them.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Why don't you provide operator== and != of Vector2f, i, u?
« Reply #4 on: December 04, 2014, 02:03:33 pm »
hmm strange those operators should be there.  What's the actual error?
No need to revive threads after a week just to repeat the last answer ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

popotan997

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Why don't you provide operator== and != of Vector2f, i, u?
« Reply #5 on: December 12, 2014, 08:56:10 am »
I'm not sure Git version, but I have installed SFML.Net 2.1.5 via NuGet.
It lacks these operators.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Why don't you provide operator== and != of Vector2f, i, u?
« Reply #6 on: December 12, 2014, 10:06:50 am »
Quote
I have installed SFML.Net 2.1.5
Such a version shouldn't exist, it's just 2.1.

You should compile the latest sources yourself to be sure to get a working version.
Laurent Gomila - SFML developer

 

anything