Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Definition of affine transformation matrices.
val identity : t
val average_scale : t -> float
val scale_x : t -> float
val scale_y : t -> float
val translation : x:float -> y:float -> t
val rotation : a:float -> t
val scale : sx:float -> sy:float -> t
val skew : sx:float -> sy:float -> t
val px : t -> float -> float -> float
px t x y
is the x coordinate of the point (x,y) after applying the affine transformation t
.
val py : t -> float -> float -> float
py t x y
is the y coordinate of the point (x,y) after applying the affine transformation t
.
val linear_px : t -> float -> float -> float
linear_px t x y
is the x coordinate of the point (x,y) after applying the linear transformation described by t
. Translation is ignored!
val linear_py : t -> float -> float -> float
linear_py t x y
is the y coordinate of the point (x,y) after applying the linear transformation described by t
. Translation is ignored!