kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #09521
Re: HPGL
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" <andreas@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
-
Re: HPGL
From: Dick Hollenbeck, 2013-02-03
References
-
HPGL
From: Andreas Beutling, 2013-02-01
-
Re: HPGL
From: Dick Hollenbeck, 2013-02-01
-
Re: HPGL
From: Andreas Beutling, 2013-02-02
-
Re: HPGL
From: Dick Hollenbeck, 2013-02-02
-
Re: HPGL
From: Andreas Beutling, 2013-02-02
-
Re: HPGL
From: Andreas Beutling, 2013-02-03