Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
int hormodular::Orientation::angle0to360 ( int  angle) [private]

Maps the current angle to a value between 0 and 360.

{
    angle %= 360;

    if (angle < 0)
        angle+=360;

    return angle;
}
 All Classes Functions Variables Friends