package JsOfOCairo

  1. Overview
  2. Docs
type t = matrix
val init_identity : unit -> t
val init_translate : float -> float -> t
val init_scale : float -> float -> t
val init_rotate : float -> t
val translate : t -> float -> float -> unit
val scale : t -> float -> float -> unit
val rotate : t -> 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 -> float -> float -> float * float
OCaml

Innovation. Community. Security.