Fix bug in bounding box 2d translation
This commit is contained in:
parent
2e1cf456c7
commit
531634b55a
@ -105,8 +105,8 @@ void calculate_cell_bounding_box(union bounding_box *box, struct gds_cell *cell)
|
|||||||
|
|
||||||
/* Move bounding box to origin */
|
/* Move bounding box to origin */
|
||||||
temp_box.vectors.lower_left.x += sub_cell->origin.x;
|
temp_box.vectors.lower_left.x += sub_cell->origin.x;
|
||||||
temp_box.vectors.lower_left.x += sub_cell->origin.x;
|
temp_box.vectors.upper_right.x += sub_cell->origin.x;
|
||||||
temp_box.vectors.upper_right.y += sub_cell->origin.y;
|
temp_box.vectors.lower_left.y += sub_cell->origin.y;
|
||||||
temp_box.vectors.upper_right.y += sub_cell->origin.y;
|
temp_box.vectors.upper_right.y += sub_cell->origin.y;
|
||||||
|
|
||||||
/* update the parent's box */
|
/* update the parent's box */
|
||||||
|
Loading…
Reference in New Issue
Block a user