Making x the subject of the formula / Re-arranging formula
#1

How can I make it so that 'fX ' is the subject. So for example I mean this: fX = offsets * x;

afaik that isn't correct, but that is what I want, but the correct one! xD

Code:
offsets[0] = fX - x;
Reply
#2

I'm a little confused, what exactly do you want fX to be?
In the equation 'offsets[0] = fX - x;', 'fX = offsets[0] + x'.
Are you trying to get 'fX = offsets * x' ??
Reply
#3

Just bring fX to the other side of the equation:

pawn Code:
a = b - c

// Is the same as

b = a + c

// Which means

-fX = -x + offsets[0]

// - cancel eachother out

fX = x + offsets[0]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)