package cairo2

  1. Overview
  2. Docs
type t = matrix
val init_identity : unit -> t
val init_translate : x:float -> y:float -> t
val init_scale : x:float -> y:float -> t
val init_rotate : angle:float -> t
val translate : t -> x:float -> y:float -> unit
val scale : t -> x:float -> y:float -> unit
val rotate : t -> angle:float -> unit
val invert : t -> unit
val multiply : t -> t -> t
val transform_distance : t -> dx:float -> dy:float -> float * float
val transform_point : t -> x:float -> y:float -> float * float
OCaml

Innovation. Community. Security.