Calculating the difference of rotation states
Is it possible to calculate the difference of rotation states? 359 and 0 should make 1 not 359.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 6, 2013, 1:13 PM
Try this revised version:
The output should be:
NameHerePosted Apr 7, 2013, 4:44 AM
NameHerePosted Apr 6, 2013, 10:53 AM
VulpesPosted Apr 6, 2013, 10:51 AM
-12 is treated as 348, less 7, equals 341.
Anyway, if these are not the answers you're expecting, then you should make it clear what you do want.
NameHerePosted Apr 6, 2013, 10:33 AM
VulpesPosted Apr 6, 2013, 10:07 AM
When I ran it, the output was:
The difference between 0 and 359 degrees is 1
Of course if you reverse the operands so that you're subtracting 0 from 359 the result will be 359 because the subtraction method always works in a clockwise direction.
NameHerePosted Apr 6, 2013, 9:19 AM
VulpesPosted Apr 6, 2013, 8:24 AM