package archimedes
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 -> t
See Matrix.make_identity
.
val make_translate : x:float -> y:float -> t
val make_scale : x:float -> y:float -> t
See Matrix.make_scale
.
val set_to_identity : t -> unit
See Matrix.make_scale
.
See Matrix.copy
.
See Matrix.copy
.
See Matrix.blit
.
val translate : t -> x:float -> y:float -> unit
See Matrix.blit
.
See Matrix.translate
.
val scale : t -> x:float -> y:float -> unit
See Matrix.translate
.
See Matrix.scale
.
val invert : t -> unit
See Matrix.scale
.
See Matrix.invert
.
val det : t -> float
See Matrix.invert
.
See Matrix.det
.
See Matrix.mul
.
See Matrix.mul
.
See Matrix.mul_in
.
val transform_point : t -> x:float -> y:float -> float * float
See Matrix.mul_in
.
val transform_distance : t -> dx:float -> dy:float -> float * float
val inv_transform_point : t -> x:float -> y:float -> float * float
val inv_transform_distance : t -> dx:float -> dy:float -> float * float
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>