SFML community forums

Bindings - other languages => DotNet => Topic started by: popotan997 on November 29, 2014, 01:19:18 am

Title: Why don't you provide operator== and != of Vector2f, i, u?
Post by: popotan997 on November 29, 2014, 01:19:18 am
Operator== (and !=) of Vector2f, i, u are useful.
Title: Re: Why don't you provide operator== and != of Vector2f, i, u?
Post by: Hapax 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.
Title: Re: Why don't you provide operator== and != of Vector2f, i, u?
Post by: Hiura on November 29, 2014, 08:42:05 am
They do exist. E.g. https://github.com/SFML/SFML.Net/blob/master/src/System/Vector2.cs#L115

What's your actual issue?
Title: Re: Why don't you provide operator== and != of Vector2f, i, u?
Post by: StormWingDelta on December 04, 2014, 03:45:25 am
hmm strange those operators should be there.  What's the actual error?
Title: Re: Why don't you provide operator== and != of Vector2f, i, u?
Post by: Nexus 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 ;)
Title: Re: Why don't you provide operator== and != of Vector2f, i, u?
Post by: popotan997 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.
Title: Re: Why don't you provide operator== and != of Vector2f, i, u?
Post by: Laurent 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.