(polygon-contains-point? x-verts y-verts test-x test-y)
Returns true if a polygon contains the given point. The polygon is defined by the first two arguments: a sequence of x values and a sequence of y values that define the polygon.
Returns true if a polygon contains the given point. The polygon is defined by the first two arguments: a sequence of x values and a sequence of y values that define the polygon.
(rotate-polygon theta points)
Rotates a polygon clockwise about its centroid. The theta argument determines
how the polygon is rotated. points
is a sequence of [x y] pairs that
define the polygon
Rotates a polygon clockwise about its centroid. The theta argument determines how the polygon is rotated. `points` is a sequence of [x y] pairs that define the polygon
(shrink-polygon points ratio)
Pulls all points in a polygon towards the centroid. The provided ratio controls how far the points are pulled, with 0 producing no change and 1.0 pulling all the way to the centroid.
Pulls all points in a polygon towards the centroid. The provided ratio controls how far the points are pulled, with 0 producing no change and 1.0 pulling all the way to the centroid.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close