altium: Use new Sin/Cos function

This commit is contained in:
Thomas Pointhuber 2022-01-17 20:43:41 +01:00
parent 8608c22b73
commit 010b705ecd
1 changed files with 2 additions and 3 deletions

View File

@ -2157,9 +2157,8 @@ void ALTIUM_PCB::ConvertArcs6ToBoardItemOnLayer( const AARC6& aElem, PCB_LAYER_I
angle.Normalize();
EDA_ANGLE startAngle( aElem.endangle, DEGREES_T );
VECTOR2I startOffset =
VECTOR2I( KiROUND( std::cos( startAngle.AsRadians() ) * aElem.radius ),
-KiROUND( std::sin( startAngle.AsRadians() ) * aElem.radius ) );
VECTOR2I startOffset = VECTOR2I( KiROUND( startAngle.Cos() * aElem.radius ),
-KiROUND( startAngle.Sin() * aElem.radius ) );
startOffset += aElem.center;