View Single Post
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 05-01-2019 , 19:51   Re: [INC] Vector helpers
Reply With Quote #7

PHP Code:
    while(ang[1] > 180.0ang[1]-=360.0;
    while(
ang[1] <-180.0ang[1]+=360.0
maybe better use this:
PHP Code:
ang FloatFraction(ang) + RoundToFloor(ang) % 360
?
__________________
Grey83 is offline