Skip to content

Commit 496cf3a

Browse files
dpbainesvaughnbetz
authored andcommitted
Make format
1 parent 6cf5883 commit 496cf3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vpr/src/draw/draw.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3230,7 +3230,7 @@ static void draw_flyline_timing_edge(ezgl::point2d start, ezgl::point2d end, flo
32303230
std::string incr_delay_str = ss.str();
32313231

32323232
// Get the angle of line, to rotate the text
3233-
float text_angle = (180/M_PI) * atan((end.y - start.y)/(end.x - start.x));
3233+
float text_angle = (180 / M_PI) * atan((end.y - start.y) / (end.x - start.x));
32343234

32353235
// Get the screen coordinates for text drawing
32363236
ezgl::rectangle screen_coords = g->world_to_screen(text_bbox);
@@ -3243,8 +3243,8 @@ static void draw_flyline_timing_edge(ezgl::point2d start, ezgl::point2d end, flo
32433243
g->set_coordinate_system(ezgl::SCREEN);
32443244

32453245
// Find an offset so it is sitting on top/below of the line
3246-
float x_offset = screen_coords.center().x - 8 * sin(text_angle * (M_PI/180));
3247-
float y_offset = screen_coords.center().y - 8 * cos(text_angle * (M_PI/180));
3246+
float x_offset = screen_coords.center().x - 8 * sin(text_angle * (M_PI / 180));
3247+
float y_offset = screen_coords.center().y - 8 * cos(text_angle * (M_PI / 180));
32483248

32493249
ezgl::point2d offset_text_bbox(x_offset, y_offset);
32503250
g->draw_text(offset_text_bbox, incr_delay_str.c_str(), text_bbox.width(), text_bbox.height());

0 commit comments

Comments
 (0)