SpiderPig Posted July 29, 2023 Share Posted July 29, 2023 Just a few simple operators not working; iVec2 v = iVec2(30, 50); v = 2 * v;//Not Working v = v * 2;//Working iVec3 v1 = iVec3(30, 50, 60); v1 = 2 * v1;//Not Working v1 = v1 * 2;//Not Working Vec2 v2 = Vec2(30, 50); v2 = 2.0f * v2;//Not Working v2 = v2 * 2.0f;//Working Vec4 v3 = Vec4(30, 50, 80, 80); v3 = 2.0f * v3;//Not Working v3 = v3 * 2.0f;//Working Link to comment Share on other sites More sharing options...
Solution Josh Posted September 5, 2023 Solution Share Posted September 5, 2023 I added multiply and divide operators for iVec classes. However, it makes sense to me that the code would not compile if a numeric literal comes first in the operation. 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts