Home
Feedback Tracker
Search
Configure Global Search
Log In
Transactions
T150351
Change Details
Change Details
Old
New
Diff
//example test vector = vector (10.2,1.3,3.5); float = 3.0; //Option 1 - Doesn't Work test[0] *= coef;//error test[1] += coef;//error test[2] -= coef;//error //Option 2 - Works float a1 = test[0]; a1 *= coef; test[0] = a1; float a2 = test[1]; a2 += coef; test[1] = a2; float a3 = test[2]; a3 -= coef; test[2] = a3;
Example test vector = Vector (10.2,1.3,3.5); float = 3.0; Option 1 - Doesn't Work test[0] *= coef; test[1] += coef; test[2] -= coef; Option 2 - Works float a1 = test[0]; a1 *= coef; test[0] = a1; float a2 = test[1]; a2 += coef; test[1] = a2; float a3 = test[2]; a3 -= coef; test[2] = a3;
//e
E
xample test vector =
v
V
ector (10.2,1.3,3.5); float = 3.0;
//
Option 1 - Doesn't Work test[0] *= coef;
//error
test[1] += coef;
//error
test[2] -= coef;
//error //
Option 2 - Works float a1 = test[0]; a1 *= coef; test[0] = a1; float a2 = test[1]; a2 += coef; test[1] = a2; float a3 = test[2]; a3 -= coef; test[2] = a3;
Continue