Code/change looks good to me, but no idea about math part... Does that really produce expected result?
For example xdiff = 2.5 and ydiff = 3.5. With current code xamount = 2.5 and yamount = 3.5, but with your change amount is now 4.301162634. Is that expected?
Code/change looks good to me, but no idea about math part... Does that really produce expected result?
For example xdiff = 2.5 and ydiff = 3.5. With current code xamount = 2.5 and yamount = 3.5, but with your change amount is now 4.301162634. Is that expected?