-
Notifications
You must be signed in to change notification settings - Fork 345
Closed
Description
wire/lua/entities/gmod_wire_expression2/core/vector.lua
Lines 524 to 530 in ccfd65e
| e2function vector mix(vector vec1, vector vec2, ratio) | |
| return Vector( | |
| vec1[1] * ratio + vec2[1] * (1-ratio), | |
| vec1[2] * ratio + vec2[2] * (1-ratio), | |
| vec1[3] * ratio + vec2[3] * (1-ratio) | |
| ) | |
| end |
mix(vvn) is implemented so that mix(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.
Metadata
Metadata
Assignees
Labels
No labels