Skip to content

Commit

Permalink
Fix sign error on rects (rerun-io#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs authored Feb 11, 2023
1 parent 0d8bb11 commit 9520003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/re_log_types/src/component_types/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ impl Rect2D {
Rect2D::YXHW(Vec4D([y, x, _h, _w])) => [*x, *y],
Rect2D::XYXY(Vec4D([x0, y0, _x1, _y1])) => [*x0, *y0],
Rect2D::YXYX(Vec4D([y0, x0, _y1, _x1])) => [*x0, *y0],
Rect2D::XCYCWH(Vec4D([x_cen, y_cen, w, h])) => [x_cen - (w / 2.0), y_cen + (h / 2.0)],
Rect2D::XCYCW2H2(Vec4D([x_cen, y_cen, w_2, h_2])) => [x_cen - w_2, y_cen + h_2],
Rect2D::XCYCWH(Vec4D([x_cen, y_cen, w, h])) => [x_cen - (w / 2.0), y_cen - (h / 2.0)],
Rect2D::XCYCW2H2(Vec4D([x_cen, y_cen, w_2, h_2])) => [x_cen - w_2, y_cen - h_2],
}
}

Expand Down

0 comments on commit 9520003

Please sign in to comment.