(all-ears points)
Return all the ears of a polygon
Return all the ears of a polygon
(draw-line! [x1 y1]
[x2 y2]
[r g b a]
&
{:keys [line-width] :or {line-width default-line-width}})
(draw-poly! [x y]
points
[r g b a]
&
{:keys [line-width] :or {line-width default-line-width}})
(other-points i points)
Return the points which are not in the ear starting at index i
Return the points which are not in the ear starting at index `i`
(triangulate poly)
Split a concave polygon with no holes or overlapping edges into a collection of triangles which can be drawn.
Split a concave polygon with no holes or overlapping edges into a collection of triangles which can be drawn.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close