Add x/y dimensions to PCB ruler

- Display dx and dy in addition to euclidian distance and angle
This commit is contained in:
Oliver 2018-08-25 21:59:21 +10:00 committed by Wayne Stambaugh
parent 7c11d0371b
commit e95b2872f6
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ static void drawCursorStrings( KIGFX::VIEW* aView, const VECTOR2D& aCursor,
// draw the cursor labels
std::vector<wxString> cursorStrings;
cursorStrings.push_back( DimensionLabel( "x", aRulerVec.x, aUnits ) );
cursorStrings.push_back( DimensionLabel( "y", aRulerVec.y, aUnits ) );
cursorStrings.push_back( DimensionLabel( "r", aRulerVec.EuclideanNorm(), aUnits ) );
double degs = RAD2DECIDEG( -aRulerVec.Angle() );