Liking cljdoc? Tell your friends :D

thi.ng.geom.utils


arc-lengthclj/s

(arc-length points)
source

arc-length-indexclj/s

(arc-length-index points)
source

axis-boundsclj/s

(axis-bounds axis coll)
source

axis-rangeclj/s

(axis-range axis coll)
source

bounding-boxclj/s

(bounding-box points)
source

bounding-box-rawclj/s

(bounding-box-raw points)
source

bounding-circleclj/s

(bounding-circle points)
(bounding-circle c r-or-points)
source

bounding-rectclj/s

(bounding-rect points)
source

bounding-rect-rawclj/s

(bounding-rect-raw points)
source

bounding-sphereclj/s

(bounding-sphere points)
(bounding-sphere c r-or-points)
source

bounds*clj/s

(bounds* zero coll)
source

centerclj/s

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

centroidclj/s

(centroid coll)
source

clockwise2?clj/s

(clockwise2? a b c)
source

clockwise3?clj/s

(clockwise3? a b c n)
source

closest-line-betweenclj/s

(closest-line-between a1 b1 a2 b2)
source

closest-point-coeffclj/s

(closest-point-coeff p a b)
source

closest-point-on-lineclj/s

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

closest-point-on-segmentclj/s

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

closest-point-on-segmentsclj/s

(closest-point-on-segments p segments)
source

coll-boundsclj/s

(coll-bounds coll)

Takes a seq of shape entities, calls g/bounds on each and returns union bounds. Does not support collections of mixed 2d/3d entities.

Takes a seq of shape entities, calls g/bounds on each and returns
union bounds. Does not support collections of mixed 2d/3d entities.
sourceraw docstring

delta-containsclj/s

(delta-contains points p eps)
source

dist*clj/s

(dist* rf)
source

fit-all-into-boundsclj/s

(fit-all-into-bounds bounds coll)

Takes an AABB or rect and seq of shapes, proportionally scales and repositions all items to fit into given bounds. Returns lazyseq of transformed entities. Does not support collections of mixed 2D/3D entities. Use rects as target bounds for 2D colls.

Takes an AABB or rect and seq of shapes, proportionally scales and
repositions all items to fit into given bounds. Returns lazyseq of
transformed entities. Does not support collections of mixed 2D/3D
entities. Use rects as target bounds for 2D colls.
sourceraw docstring

from-barycentricclj/s

(from-barycentric points weights)
source

into-meshclj/s

(into-mesh mesh add-face mesh-or-faces)

Takes a target mesh, its add-face fn and a source mesh or face sequence. Adds faces to target mesh and returns it.

Takes a target mesh, its add-face fn and a source mesh or face
sequence. Adds faces to target mesh and returns it.
sourceraw docstring

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

map-meshclj/s

(map-mesh f mesh)

Applies f to all faces of given mesh and adds resulting faces to new mesh. Thus f should return a seq of raw faces (i.e. each face as 2-elem vector of [verts attribs]. Returns new mesh.

Applies f to all faces of given mesh and adds resulting faces to
new mesh. Thus f should return a seq of raw faces (i.e. each face as
2-elem vector of [verts attribs]. Returns new mesh.
sourceraw 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)
sourceraw docstring

max-distclj/s

source

min-distclj/s

source

norm-sign2clj/s

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

norm-sign3clj/s

(norm-sign3 a b c)
source

ortho-normalclj/s

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

point-atclj/s

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

point-at*clj/s

(point-at* points idx total t i)
source

point-at-indexclj/s

(point-at-index points t)

Takes a seq of points and normalized index (0.0 .. 1.0), returns interpolated point at position t.

Takes a seq of points and normalized index (0.0 .. 1.0), returns
interpolated point at position t.
sourceraw docstring

point-in-triangle2?clj/s

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

point-in-triangle3?clj/s

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

radial-boundsclj/s

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

sample-segment-with-resclj/s

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

sample-uniformclj/s

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

sample-uniform*clj/s

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

scale-sizeclj/s

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

tessellate-3clj/s

(tessellate-3 points)
source

tessellate-faceclj/s

(tessellate-face tess-fn)
source

tessellate-max4clj/s

(tessellate-max4 points)
source

tessellate-tri-with-midpointsclj/s

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

tessellate-with-firstclj/s

(tessellate-with-first points)
source

tessellate-with-pointclj/s

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

total-area-3dclj/s

(total-area-3d faces)
(total-area-3d xf faces)
source

total-volumeclj/s

(total-volume faces)
(total-volume xf faces)
source

transform-meshclj/s

(transform-mesh mesh add-face tx)

Takes a mesh, its add-face fn and a vertex transformation fn. Transforms all mesh vertices and returns new mesh.

Takes a mesh, its add-face fn and a vertex transformation fn.
Transforms all mesh vertices and returns new mesh.
sourceraw docstring

tri-area2clj/s

(tri-area2 a b c)
source

tri-area3clj/s

(tri-area3 a b c)
source

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)
source

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

× close