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-27 09:29:30 -04:00
committed by Wayne Stambaugh
parent 7c11d0371b
commit e95b2872f6
+3
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() );