VECTOR2D CalcArcCenter( VECTOR2D& aStart, VECTOR2D& aEnd, EDA_ANGLE& aAngle ):
fix broken calculation of arc center for arcs > 180 degrees. Fixes #11708 https://gitlab.com/kicad/code/kicad/issues/11708
This commit is contained in:
parent
993c446fdf
commit
130723ebac
|
@ -314,7 +314,7 @@ const VECTOR2D CalcArcCenter( const VECTOR2D& aStart, const VECTOR2D& aEnd,
|
|||
if( angle > ANGLE_180 )
|
||||
{
|
||||
std::swap( start, end );
|
||||
angle = ANGLE_180 - angle;
|
||||
angle = ANGLE_360 - angle;
|
||||
}
|
||||
|
||||
double chord = ( start - end ).EuclideanNorm();
|
||||
|
|
Loading…
Reference in New Issue