package sfml

  1. Overview
  2. Docs
type t
type matrix = {
  1. a00 : float;
  2. a01 : float;
  3. a02 : float;
  4. a10 : float;
  5. a11 : float;
  6. a12 : float;
  7. a20 : float;
  8. a21 : float;
  9. a22 : float;
}
val fromMatrix : matrix:matrix -> t
val getIdentity : unit -> t
val getMatrix : transform:t -> float array
val getInverse : transform:t -> t
val combine : transform:t -> other:t -> unit
val translate : transform:t -> (float * float) -> unit
val translate2 : transform:t -> x:float -> y:float -> unit
val rotate : transform:t -> angle:float -> unit
val rotateWithCenter : transform:t -> angle:float -> center:(float * float) -> unit
val rotateWithCenter2 : transform:t -> angle:float -> centerX:float -> centerY:float -> unit
val scale : transform:t -> scaleX:float -> scaleY:float -> unit
OCaml

Innovation. Community. Security.