Convert Negative to Positive

J

John

Hi there,

I'm trying to use the ATAN2 function to return an ordered list of dynamic
connector shapes' angles. To do this I've add a user cell to the shape's
shapesheet with the following:

ATAN2((EndY-BeginY),(EndX-BeginX))

Thinking of a clock face this starts at 3 o'clock and runs anti-clockwise
from 0-180 degrees to 9 o'clock. From 9 to 3 o'clock it becomes negative
(ie -180 to 0).

So, I want to convert the negative numbers to their positve equivelant, such
as -90 + 360 = 270 degrees. So, the formula below should work:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top