package sfml

  1. Overview
  2. Docs

Online documentation for the Rect class

type 'a t = {
  1. left : 'a;
  2. top : 'a;
  3. width : 'a;
  4. 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