This is not done yet. The problem with this approach is we've yet to achieve a full understanding.
Not all angles in a circle can be normalized into +179 to -180. eg 179.1 and what about 179.9 So the code "looks like a guess" rather than a reasoned solution. Can you make it handle 179.9 degrees? On Feb 3, 2013 5:48 AM, "Andreas Beutling" <andr...@abeutling.de> wrote: > Hello, > > without NormalizeDegrees it works ok in all tested directions. Changes: > > > // degrees = NormalizeDegrees( -180.0, degrees, +179.0 ); > > while( degrees > 179 ) > degrees -= 360; > while( degrees < -180 ) > degrees += 360; > > // Calculate start point, > > > See the attached image. > > Regards, Andreas > > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp