GDS-Render v1.2.1
bounding-box.h File Reference

Header for calculation of bounding boxes. More...

#include <glib.h>
#include <gds-render/geometric/vector-operations.h>
#include <stdbool.h>
Include dependency graph for bounding-box.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  bounding_box
 Union describing a bounding box. More...
 
struct  bounding_box::_vectors
 Location vectors of upper right and lower left bounding box points. More...
 

Typedefs

typedef void(* conv_generic_to_vector_2d_t) (void *, struct vector_2d *)
 

Functions

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. More...
 
void bounding_box_update_with_box (union bounding_box *destination, union bounding_box *update)
 Update an exisitng bounding box with another one. More...
 
void bounding_box_prepare_empty (union bounding_box *box)
 Prepare an empty bounding box. More...
 
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. More...
 
void bounding_box_get_all_points (struct vector_2d *points, union bounding_box *box)
 Return all four corner points of a bounding box. More...
 
void bounding_box_apply_transform (double scale, double rotation_deg, bool flip_at_x, union bounding_box *box)
 Apply transformations onto bounding box. More...
 
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. More...
 

Detailed Description

Header for calculation of bounding boxes.

Author
Mario Hüttel mario.nosp@m..hue.nosp@m.ttel@.nosp@m.gmx..nosp@m.net

Definition in file bounding-box.h.