package gg

  1. Overview
  2. Docs
type t = m2
val dim : int
type v = v2
val v : float -> float -> float -> float -> m2
val of_rows : v2 -> v2 -> m2
val of_cols : v2 -> v2 -> m2
val el : int -> int -> m2 -> float
val row : int -> m2 -> v2
val col : int -> m2 -> v2
val zero : m2
val id : m2
val of_m3 : m3 -> m2
val of_m4 : m4 -> m2
val neg : m2 -> m2
val add : m2 -> m2 -> m2
val sub : m2 -> m2 -> m2
val mul : m2 -> m2 -> m2
val emul : m2 -> m2 -> m2
val ediv : m2 -> m2 -> m2
val smul : float -> m2 -> m2
val transpose : m2 -> m2
val trace : m2 -> float
val det : m2 -> float
val inv : m2 -> m2
val rot : float -> m2
val scale : v2 -> m2
val map : (float -> float) -> m2 -> m2
val mapi : (int -> int -> float -> float) -> m2 -> m2
val fold : ('a -> float -> 'a) -> 'a -> m2 -> 'a
val foldi : ('a -> int -> int -> float -> 'a) -> 'a -> m2 -> 'a
val iter : (float -> unit) -> m2 -> unit
val iteri : (int -> int -> float -> unit) -> m2 -> unit
val for_all : (float -> bool) -> m2 -> bool
val exists : (float -> bool) -> m2 -> bool
val equal : m2 -> m2 -> bool
val equal_f : (float -> float -> bool) -> m2 -> m2 -> bool
val compare : m2 -> m2 -> int
val compare_f : (float -> float -> int) -> m2 -> m2 -> int
val to_string : m2 -> string
val pp : Format.formatter -> m2 -> unit
val pp_f : (Format.formatter -> float -> unit) -> Format.formatter -> m2 -> unit
val e00 : m2 -> float
val e01 : m2 -> float
val e10 : m2 -> float
val e11 : m2 -> float
OCaml

Innovation. Community. Security.