Cleanup track comps

This commit is contained in:
Seth Hillbrand 2024-05-30 14:21:51 -07:00
parent 429625e311
commit bffbdad9c0
1 changed files with 4 additions and 6 deletions

View File

@ -1552,10 +1552,9 @@ EDA_ANGLE PCB_ARC::GetAngle() const
EDA_ANGLE PCB_ARC::GetArcAngleStart() const
{
VECTOR2I pos( GetPosition() );
VECTOR2D dir( (double) m_Start.x - pos.x, (double) m_Start.y - pos.y );
VECTOR2I pos( GetPosition() );
EDA_ANGLE angleStart( m_Start - pos );
EDA_ANGLE angleStart( dir );
return angleStart.Normalize();
}
@ -1563,10 +1562,9 @@ EDA_ANGLE PCB_ARC::GetArcAngleStart() const
// Note: used in python tests. Ignore CLion's claim that it's unused....
EDA_ANGLE PCB_ARC::GetArcAngleEnd() const
{
VECTOR2I pos( GetPosition() );
VECTOR2D dir( (double) m_End.x - pos.x, (double) m_End.y - pos.y );
VECTOR2I pos( GetPosition() );
EDA_ANGLE angleEnd( m_End - pos );
EDA_ANGLE angleEnd( dir );
return angleEnd.Normalize();
}