right now i have origin_1_x set to 300, so it should act the same as if i had 300 hardcoded (which is currently commented out).
When I hard code 300 in there it works great. but since i will let the user decide what the origin will be, i want to pass a variable instead.
currently, when i hardcode 300 in this is my trace output:
first x 246.95
cx 300
dy -66.3644
equation 253.629273943845
second x 253.6
However, when i pass the variable instead, this is my output
first x 246.95
cx 300
dy -66.3644
equation 300-46.3707260561545
second x 246.95
x gets passed in just fine (as cx is 300), however, the assignment of changing the value of who._x doesn't work at all. and the equation brings back a different result...
temp -46.3707260561545
cx 300
new temp-46.3707260561545300
Yet, if i change the line
tempVar += cx;
to
tempVar += 300;
then this works fine
i'm really not sure why it's not interpreting cx correctly. And like i said in the first post, when i pass in hardcoded numbers this works fine. but even if i pass in a variable equal to 300 it seems to cause this mess.