#ifndef pz_window_H #define pz_window_H /* A pz_window_t is a box (axis-aligned rectangle) on the plotting plane. */ /* Last edited on 2008-02-08 11:32:49 by stolfi */ #include #include #include typedef struct pz_window_t { interval_t r[2]; } pz_window_t; bool_t pz_window_is_empty ( pz_window_t *w ); /* TRUE if {w} is empty or reduces to a single point. */ pz_window_t pz_window_join ( pz_window_t *w1, pz_window_t *w2 ); /* The smallest box that contains {w1} and {w2}. */ pz_window_t pz_window_expand ( pz_window_t *w, double rel ); /* Enlarges {w} on all four sides by {rel} times its maximum extent. */ pz_window_t pz_window_read( FILE *rd ); /* Reads a window from {rd}. */ #endif