E2 mix functions implemented backwards #2893
Replies: 4 comments
-
|
With #2721, could probably fix this ordering issue with the |
Beta Was this translation helpful? Give feedback.
-
|
Agreed, it's definitely backwards, and I've known for ages. I just never complained because fixing something like this requires either deprecating functions or breaking backwards-compat (lol) |
Beta Was this translation helpful? Give feedback.
-
|
when e2 literally breaks chips by fixing its self lmao does this mean e2 functions by being broken |
Beta Was this translation helpful? Give feedback.
-
|
Converted to a discussion since this isn't a bug just bad design |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
wire/lua/entities/gmod_wire_expression2/core/vector.lua
Lines 524 to 530 in ccfd65e
mix(vvn)is implemented so thatmix(vec1, vec2, 0) == vec2. The same applies to all other mix functions (vector2, vector4). This is confusing compared to typical definitions of similar functions.The expected behavior is
mix(vec1, vec2, 0) == vec1.Not sure how no-one has complained about this before.
Updates:
This thread is now a bit outdated for mentioning vectors specifically, but this still holds true for other types, so those still need to be addressed.
#2895: Deprecated
mix(vector, vector, number)Beta Was this translation helpful? Give feedback.
All reactions