04-08-2008 07:42 PM
04-09-2008
06:55 AM
- last edited on
05-01-2026
01:40 PM
by
Content Cleaner
You can use the Quotient & Remainder function. using a for loop, let x = your array element and y = 360. The Remainder will be your wrapped phase ( 0 - 360 ). Add -180 to your remainder.
Message Edited by Phillip Brooks on 04-09-2008 07:55 AM
04-09-2008 07:03 AM
I had to do the same thing a few years ago...basically I wrote my own function in a formula node. That code now belongs to the people that hired me for the task, so I don't have the code to send you, but it was a pretty simply
int32 y;
if (x >180)
y = x -180;
else if (x < -180);
y = x +180;
else
y = x;
04-11-2008 04:21 PM