Liking cljdoc? Tell your friends :D

genartlib.geometry


polygon-contains-point?clj

(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.
sourceraw docstring

rotate-polygonclj

(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
sourceraw docstring

shrink-polygonclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close