clip.h 452 B

12345678910111213141516171819202122232425262728
  1. #ifndef DISPLAYLIB_CLIP_H
  2. #define DISPLAYLIB_CLIP_H
  3. #include "path.h"
  4. struct plane
  5. {
  6. double x, y, k;
  7. };
  8. struct clip
  9. {
  10. struct plane left, rite, bot, top;
  11. };
  12. struct rectangle
  13. {
  14. double left, rite, bot, top;
  15. };
  16. void D__set_clip_planes(struct clip *, const struct rectangle *);
  17. void D__cull_path(struct path *, const struct path *, const struct clip *);
  18. void D__clip_path(struct path *, const struct path *, const struct clip *);
  19. #endif