31#ifndef _BOUNDING_BOX_H_
32#define _BOUNDING_BOX_H_
void bounding_box_prepare_empty(union bounding_box *box)
Prepare an empty bounding box.
void bounding_box_get_all_points(struct vector_2d *points, union bounding_box *box)
Return all four corner points of a bounding box.
void bounding_box_update_with_path(GList *vertices, double thickness, conv_generic_to_vector_2d_t conv_func, union bounding_box *box)
Calculate the bounding box of a path and update the given bounding box.
void(* conv_generic_to_vector_2d_t)(void *, struct vector_2d *)
void bounding_box_apply_transform(double scale, double rotation_deg, bool flip_at_x, union bounding_box *box)
Apply transformations onto bounding box.
void bounding_box_calculate_from_polygon(GList *vertices, conv_generic_to_vector_2d_t conv_func, union bounding_box *box)
Calculate bounding box of polygon.
void bounding_box_update_with_point(union bounding_box *destination, conv_generic_to_vector_2d_t conv_func, void *pt)
Update bounding box with a point.
void bounding_box_update_with_box(union bounding_box *destination, union bounding_box *update)
Update an exisitng bounding box with another one.
Location vectors of upper right and lower left bounding box points.
struct vector_2d upper_right
Upper right point of the bounding box.
struct vector_2d lower_left
Lower left point of the bounding box.
Union describing a bounding box.
struct bounding_box::_vectors vectors
struct vector_2d vector_array[2]
Array of vectors representing a bounding box.
Header for 2D Vector operations.