Liking cljdoc? Tell your friends :D

thi.ng.geom.core.utils


arc-lengthclj/s

(arc-length points)

arc-length-indexclj/s

(arc-length-index points)

axis-boundsclj/s

(axis-bounds axis coll)

axis-rangeclj/s

(axis-range axis coll)

bounding-boxclj/s

(bounding-box points)

bounding-rectclj/s

(bounding-rect points)

bounds*clj/s

(bounds* zero [x & xs :as coll])

centerclj/s

(center c' coll)
(center c c' coll)

centroidclj/s

(centroid [x & xs :as coll])

clockwise2?clj/s

(clockwise2? a b c)

clockwise3?clj/s

(clockwise3? a b c n)

closest-line-betweenclj/s

(closest-line-between a1 b1 a2 b2)

closest-point-coeffclj/s

(closest-point-coeff p a b)

closest-point-on-lineclj/s

(closest-point-on-line p a b)

closest-point-on-segmentclj/s

(closest-point-on-segment p a b)

closest-point-on-segmentsclj/s

(closest-point-on-segments p segments)

delta-containsclj/s

(delta-contains points p eps)

dist*clj/s

(dist* rf)

from-barycentricclj/s

(from-barycentric points weights)

map-bilinearclj/s

(map-bilinear [a b c d] [u v])

Takes a seq of 4 points in ccw order and 2D vector of normalized UV coordinates. Applies bilinear interpolation to compute point within the rect: U is coord along AB/DC edge, V along BC/AD

Takes a seq of 4 points in ccw order and 2D vector of normalized UV
coordinates. Applies bilinear interpolation to compute point within
the rect: U is coord along AB/DC edge, V along BC/AD
raw docstring

map-trilinearclj/s

(map-trilinear [a b c d e f g h] [u v w])

Takes a seq of 8 points defining a cuboid and vector of normalized UVW coordinates. Applies trilinear interpolation to compute point within the cuboid: U is coord along AD/BC edge, V along AE/BF, W along AB/DC (see above diagram)

Takes a seq of 8 points defining a cuboid and vector of normalized
UVW coordinates. Applies trilinear interpolation to compute point
within the cuboid: U is coord along AD/BC edge, V along AE/BF, W
along AB/DC (see above diagram)
raw docstring

max-distclj/s


min-distclj/s


norm-sign2clj/s

(norm-sign2 [ax ay] [bx by] [cx cy])

norm-sign3clj/s

(norm-sign3 a b c)

ortho-normalclj/s

(ortho-normal [a b c])
(ortho-normal a b)
(ortho-normal a b c)

point-atclj/s

(point-at t points)
(point-at t points idx)

point-at*clj/s

(point-at* points idx total t i)

point-in-triangle2?clj/s

(point-in-triangle2? p a b c)

point-in-triangle3?clj/s

(point-in-triangle3? p a b c)

radial-boundsclj/s

(radial-bounds ctor c r-or-points)

sample-segment-with-resclj/s

(sample-segment-with-res a b res include-b?)

sample-uniformclj/s

(sample-uniform udist include-last? points)

sample-uniform*clj/s

(sample-uniform* udist include-last? points)

scale-sizeclj/s

(scale-size s coll)
(scale-size c s coll)

tessellate-3clj/s

(tessellate-3 points)

tessellate-max4clj/s

(tessellate-max4 points)

tessellate-tri-with-midpointsclj/s

(tessellate-tri-with-midpoints [a b c])

tessellate-with-firstclj/s

(tessellate-with-first points)

tessellate-with-pointclj/s

(tessellate-with-point points)
(tessellate-with-point c points)

total-area-3dclj/s

(total-area-3d faces)

total-volumeclj/s

(total-volume faces)

tri-area2clj/s

(tri-area2 a b c)

tri-area3clj/s

(tri-area3 a b c)

triangle-barycentric-coordsclj/s

(triangle-barycentric-coords [a b c] p)
(triangle-barycentric-coords a b c p)
(triangle-barycentric-coords a b c p u v)

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

× close