Module SFRect

module SFRect: sig .. end


Online documentation for the Rect class
type 'a t = {
   left :'a;
   top :'a;
   width :'a;
   height :'a;
}
val contains_f : rect:float t -> x:float -> y:float -> bool
val contains_i : rect:int t -> x:int -> y:int -> bool
val intersects_i : rect1:int t -> rect2:int t -> bool
val intersection_i : rect1:int t -> rect2:int t -> int t option
val intersects_f : rect1:float t -> rect2:float t -> bool
val intersection_f : rect1:float t -> rect2:float t -> float t option