Pcbnew: circular array tool: add angle offset and direction options

This commit is contained in:
John Beard
2025-05-04 21:34:30 +08:00
parent ec7129212c
commit ac3b56a560
7 changed files with 394 additions and 9 deletions
+5
View File
@@ -133,6 +133,11 @@ ARRAY_OPTIONS::TRANSFORM ARRAY_CIRCULAR_OPTIONS::GetTransform( int n, const VECT
// n'th step
angle = EDA_ANGLE( m_angle.AsDegrees() * n, DEGREES_T );
angle += m_angleOffset;
if( m_clockwise )
angle = -angle;
VECTOR2I new_pos = aPos;
RotatePoint( new_pos, m_centre, angle );