E2 mix functions implemented backwards #2893
Denneisk
started this conversation in
Suggestions
Replies: 4 comments
|
With #2721, could probably fix this ordering issue with the |
0 replies
|
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) |
0 replies
|
when e2 literally breaks chips by fixing its self lmao does this mean e2 functions by being broken |
0 replies
|
Converted to a discussion since this isn't a bug just bad design |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)All reactions