package ocaml-canvas
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Point manipulation functions
val of_ints : (int * int) -> t
of_ints (x, y)
creates a point from integer coordinates
rotate p ~around ~theta
rotates point p
around a central point around
by an angle theta
val transform : t -> Transform.t -> t
transform p t
transforms point p
by the given transform t
barycenter a p1 b p2
compute the barycenter of (a
, p1
) and (b
, p2
)
Exceptions:
Invalid_argument
ifa
+b
= 0.0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>