google / mathfu

C++ math library developed primarily for games focused on simplicity and efficiency.
http://google.github.io/mathfu
Apache License 2.0
1.4k stars 188 forks source link

[Feature Request] - Accessors #21

Closed hsdxpro closed 7 years ago

hsdxpro commented 7 years ago

Hi dear mathfu contributors !

I'm happy to use mathfu for hobby project, It works like a charm.

Me and my teammates would request that mathfu Vector.x() and similar operations should work without parenthesis.

So in the current state of mathfu: vec.x() = 5; something = vec.x();

What we would like to make mathfu better vec.x = 5; something = vec.x;

I didn't looked at the source code, so if you really need to call functions when accessing x, there are several methods to make C# like property accesses for those, with ZERO overhead.

Please take this request seriously, keep up the good work though :)

hsdxpro commented 7 years ago

I didn't notice it's already implemented :)