Module MuPDF.Quad

Quadrangles.

type t = {
  1. ul : Point.t;
    (*

    upper-left corner

    *)
  2. ur : Point.t;
    (*

    upper-right corner

    *)
  3. ll : Point.t;
    (*

    lower-left corner

    *)
  4. lr : Point.t;
    (*

    lower-right corner

    *)
}

A representation for a region defined by 4 points. The significant difference between quads and rects is that the edges of quads are not axis aligned.

val to_rectangle : t -> Rectangle.t

Convert a quad to the smallest rect that covers it.