Jump to content

Vector Operators


SpiderPig
 Share

Go to solution Solved by Josh,

Recommended Posts

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

  • 1 month later...
  • Solution

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.

  • Thanks 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

  • Josh locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...