package archimedes
Module Matrix.Homothety
Transformations that are the composition of translations and inhomogeneous dilations (different scaling factors are allowed in each canonical direction).
See Matrix.t, setting xy = 0 = yx.
of_matrix m returns a copy of the transformation m if it contains no rotation or raise Invalid_argument otherwise.
val make_identity : unit -> tSee Matrix.make_identity.
val make_translate : x:float -> y:float -> tval make_scale : x:float -> y:float -> tSee Matrix.make_scale.
val set_to_identity : t -> unitSee Matrix.make_scale.
See Matrix.copy.
See Matrix.copy.
See Matrix.blit.
val translate : t -> x:float -> y:float -> unitSee Matrix.blit.
See Matrix.translate.
val scale : t -> x:float -> y:float -> unitSee Matrix.translate.
See Matrix.scale.
val invert : t -> unitSee Matrix.scale.
See Matrix.invert.
val det : t -> floatSee Matrix.invert.
See Matrix.det.
See Matrix.mul.
See Matrix.mul.
See Matrix.mul_in.
val transform_point : t -> x:float -> y:float -> float * floatSee Matrix.mul_in.
val transform_distance : t -> dx:float -> dy:float -> float * floatval inv_transform_point : t -> x:float -> y:float -> float * floatval inv_transform_distance : t -> dx:float -> dy:float -> float * float