Liking cljdoc? Tell your friends :D

thi.ng.geom.quad


inset-cornerclj/s

(inset-corner a b c d n1 n2)

Takes the end points of two lines and an inset vector for each line. Computes the shortest line segment between the two lines and returns the end point lying on AB (the first line given). Returns nil if there is no intersection (i.e. the given lines are parallel or zero length).

Takes the end points of two lines and an inset vector for each line.
Computes the shortest line segment between the two lines and returns
the end point lying on AB (the first line given). Returns nil if there
is no intersection (i.e. the given lines are parallel or zero length).
sourceraw docstring

inset-quadclj/s

(inset-quad [a b c d] inset)

Takes a vector of four points defining a convex quad and an inset distance (use negative value for offsetting). Returns vector of edge intersections (the new corner points).

Takes a vector of four points defining a convex quad and an inset
distance (use negative value for offsetting). Returns vector of edge
intersections (the new corner points).
sourceraw docstring

quad3clj/s

(quad3)
(quad3 w)
(quad3 a b c d)
source

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

× close