package gg

  1. Overview
  2. Docs
type t = box2
val dim : int
type v = v2
type p = p2
type size = size2
type m = m2
val v : p2 -> size2 -> box2
val v_mid : p2 -> size2 -> t
val empty : box2
val o : box2 -> p2
val ox : box2 -> float
val oy : box2 -> float
val size : box2 -> size
val w : box2 -> float
val h : box2 -> float
val zero : box2
val unit : box2
val of_pts : p2 -> p2 -> box2
val min : box2 -> p2
val minx : box2 -> float
val miny : box2 -> float
val max : box2 -> p2
val maxx : box2 -> float
val maxy : box2 -> float
val mid : box2 -> p2
val midx : box2 -> float
val midy : box2 -> float
val bottom_left : box2 -> p2
val bottom_right : box2 -> p2
val top_left : box2 -> p2
val top_right : box2 -> p2
val area : box2 -> float
val inter : box2 -> box2 -> box2
val union : box2 -> box2 -> box2
val inset : v2 -> box2 -> box2
val round : box2 -> box2
val move : v2 -> box2 -> box2
val ltr : m2 -> box2 -> box2
val tr : m3 -> box2 -> box2
val map_f : (float -> float) -> box2 -> box2
val is_empty : box2 -> bool
val is_pt : box2 -> bool
val is_seg : box2 -> bool
val isects : box2 -> box2 -> bool
val subset : box2 -> box2 -> bool
val mem : p2 -> box2 -> bool
val equal : box2 -> box2 -> bool
val equal_f : (float -> float -> bool) -> box2 -> box2 -> bool
val compare : box2 -> box2 -> int
val compare_f : (float -> float -> int) -> box2 -> box2 -> int
val to_string : box2 -> string
val pp : Format.formatter -> box2 -> unit
val pp_f : (Format.formatter -> float -> unit) -> Format.formatter -> box2 -> unit
OCaml

Innovation. Community. Security.