Liking cljdoc? Tell your friends :D

thi.ng.geom.core


*resolution*clj/s

source

IAlignclj/s≠protocol

align-withclj/s

(align-with _ x opts)

Returns updated entity aligned with x in the specified manner

Returns updated entity aligned with `x` in the specified manner
source

IAreaclj/s≠protocol

areaclj/s

(area _)

Returns an entity's total surface area

Returns an entity's total surface area
source

IAttributeAccessclj/s≠protocol

attribsclj/s

(attribs _ ctx)
(attribs _ ctx attr)
source

IBoundaryclj/s≠protocol

contains-point?clj/s

(contains-point? _ p)

contains-entity?clj/s

(contains-entity? _ s)
source

IBoundingCircleclj/s≠protocol

bounding-circleclj/s

(bounding-circle _)
source

IBoundingSphereclj/s≠protocol

bounding-sphereclj/s

(bounding-sphere _)
source

IBoundsclj/s≠protocol

boundsclj/s

(bounds _)

Returns bounding rect for 2d entities or box for 3d

Returns bounding rect for 2d entities or box for 3d

depthclj/s

(depth _)

Returns entity's extent along Z (zero for 2d)

Returns entity's extent along Z (zero for 2d)

heightclj/s

(height _)

Returns entity's extent along Y axis

Returns entity's extent along Y axis

widthclj/s

(width _)

Returns entity's extent along X axis

Returns entity's extent along X axis
source

ICenterclj/s≠protocol

centerclj/s

(center _)
(center _ p)

Returns updated entity centered around world origin or given point

Returns updated entity centered around world origin or given point

centroidclj/s

(centroid _)

Returns centroid of entity

Returns centroid of entity
source

ICircumferenceclj/s≠protocol

circumferenceclj/s

(circumference _)

Returns an entity's circumference

Returns an entity's circumference
source

IClassifyclj/s≠protocol

classify-pointclj/s

(classify-point _ p)
source

IClearclj/s≠protocol

clear!clj/s

(clear! _)

clear*clj/s

(clear* _)
source

IClipclj/s≠protocol

clip-withclj/s

(clip-with _ s)
source

IConvexHullclj/s≠protocol

convex-hullclj/s

(convex-hull _)
source

IDirectedGraphclj/s≠protocol

out-verticesclj/s

(out-vertices _ v)

in-verticesclj/s

(in-vertices _ v)
source

IDistanceclj/s≠protocol

distclj/s

(dist _ a)

dist-squaredclj/s

(dist-squared _ a)
source

IEdgeAccessclj/s≠protocol

edgesclj/s

(edges _)
(edges _ opts)
source

IExtrudeclj/s≠protocol

extrudeclj/s

(extrude _ opts)

extrude-shellclj/s

(extrude-shell _ opts)
source

IFaceAccessclj/s≠protocol

vertex-facesclj/s

(vertex-faces _ v)

Returns seq of faces the given vertex is part of.

Returns seq of faces the given vertex is part of.

add-faceclj/s

(add-face _ face)

Adds a new face to a mesh. The face arg is a 2-element vector of [vertices attributes], where attributes is a map of arbitrary vertex attributes. E.g. (g/add-face m [verts {:uv [[0 0] [1 0] [1 1]]}])

Adds a new face to a mesh. The face arg is a 2-element vector
of [vertices attributes], where attributes is a map of arbitrary
vertex attributes. E.g. (g/add-face m [verts {:uv [[0 0] [1 0] [1 1]]}])

remove-faceclj/s

(remove-face _ fverts)

Takes a vector of vertices defining a face in the mesh and returns updated mesh without that face.

Takes a vector of vertices defining a face in the mesh and
returns updated mesh without that face.

facesclj/s

(faces _)
(faces _ opts)

Returns a mesh's face collection. If called without opts arg, returns faces directly as used internally by the mesh. If opts is truthy, returns each face as vector with a vector of face vertices as its first element. If the mesh supports vertex attributes, they're returned as the 2nd element in each face vector.

Returns a mesh's face collection. If called without opts arg,
returns faces directly as used internally by the mesh. If opts is
truthy, returns each face as vector with a vector of face vertices
as its first element. If the mesh supports vertex attributes,
they're returned as the 2nd element in each face vector.
source

IFlipclj/s≠protocol

flipclj/s

(flip _)
source

IGeomContainerclj/s≠protocol

intoclj/s

(into _ m)
source

IGraphclj/s≠protocol

connected-componentsclj/s

(connected-components _)

cyclic?clj/s

(cyclic? _)

merge-verticesclj/s

(merge-vertices _ a b)

remove-vertexclj/s

(remove-vertex _ v)

replace-vertexclj/s

(replace-vertex _ a b)

vertex-neighborsclj/s

(vertex-neighbors _ v)

vertex-valenceclj/s

(vertex-valence _ v)
source

IGraphConvertclj/s≠protocol

as-graphclj/s

(as-graph _)
(as-graph _ opts)
source

IHeadingclj/s≠protocol

angle-betweenclj/s

(angle-between _ a)

headingclj/s

(heading _)

heading-xyclj/s

(heading-xy _)

heading-xzclj/s

(heading-xz _)

heading-yzclj/s

(heading-yz _)

slope-xyclj/s

(slope-xy _)

slope-xzclj/s

(slope-xz _)

slope-yzclj/s

(slope-yz _)
source

IInsetclj/s≠protocol

insetclj/s

(inset _ inset)
source

IIntersectclj/s≠protocol

intersect-shapeclj/s

(intersect-shape _ s)

intersect-lineclj/s

(intersect-line _ l)
(intersect-line _ p q)

intersect-rayclj/s

(intersect-ray _ r)
(intersect-ray _ p dir)
source

IMatrixConvertclj/s≠protocol

as-matrixclj/s

(as-matrix _)
(as-matrix _ opts)
source

IMeshConvertclj/s≠protocol

as-meshclj/s

(as-mesh _)
(as-mesh _ opts)

Transforms the current enitity into a mesh instance

Transforms the current enitity into a mesh instance
source

IMutablePropsclj/s≠protocol

get-propclj/s

(get-prop _ k)

set-prop!clj/s

(set-prop! _ k v)

update-prop!clj/s

(update-prop! _ k f)
source

INormalclj/s≠protocol

normalclj/s

(normal _)
(normal _ a)
source

INormalAccessclj/s≠protocol

face-normalclj/s

(face-normal _ f)

vertex-normalsclj/s

(vertex-normals _ force?)

compute-face-normalsclj/s

(compute-face-normals _)

vertex-normalclj/s

(vertex-normal _ v)

face-normalsclj/s

(face-normals _ force?)

compute-vertex-normalsclj/s

(compute-vertex-normals _)
source

IPointMapclj/s≠protocol

map-pointclj/s

(map-point _ p)

unmap-pointclj/s

(unmap-point _ p)
source

IPolarclj/s≠protocol

as-cartesianclj/s

(as-cartesian _)

as-polarclj/s

(as-polar _)
source

IPolygonConvertclj/s≠protocol

as-polygonclj/s

(as-polygon _)
(as-polygon _ res)

Transforms current entity into a Polygon2 instance

Transforms current entity into a Polygon2 instance
source

IProximityclj/s≠protocol

closest-pointclj/s

(closest-point _ p)
source

IRawAccessclj/s≠protocol

rawclj/s

(raw _ ctx)
source

IReflectclj/s≠protocol

reflectclj/s

(reflect _ r)
source

IRotateclj/s≠protocol

rotateclj/s

(rotate _ t)
source

IRotate3Dclj/s≠protocol

rotate-around-axisclj/s

(rotate-around-axis _ a t)

rotate-xclj/s

(rotate-x _ t)

rotate-yclj/s

(rotate-y _ t)

rotate-zclj/s

(rotate-z _ t)
source

ISampleclj/s≠protocol

random-point-insideclj/s

(random-point-inside _)

point-atclj/s

(point-at _ t)
(point-at _ u v)

sample-uniformclj/s

(sample-uniform _ dist include-last?)

random-pointclj/s

(random-point _)

sample-with-resolutionclj/s

(sample-with-resolution _ res)
source

IScaleclj/s≠protocol

scaleclj/s

(scale _ s)

scale-sizeclj/s

(scale-size _ s)
source

IShearclj/s≠protocol

shearclj/s

(shear _ s)
source

ISliceclj/s≠protocol

slice-withclj/s

(slice-with _ e)
(slice-with _ e classifier)
(slice-with _ e classifier parts)
source

ISpatialTreeclj/s≠protocol

get-point-dataclj/s

(get-point-data _)

add-pointclj/s

(add-point _ p d)

get-pointclj/s

(get-point _)

delete-pointclj/s

(delete-point _ p)
source

ISubdivideclj/s≠protocol

subdivideclj/s

(subdivide _)
(subdivide _ opts)

subdivide-edgeclj/s

(subdivide-edge _ a b splits)

subdivide-faceclj/s

(subdivide-face _ f p displace splits)
source

ITessellateclj/s≠protocol

tessellateclj/s

(tessellate _)
(tessellate _ opts)
source

ITransformclj/s≠protocol

transformclj/s

(transform _ tx)
source

ITranslateclj/s≠protocol

translateclj/s

(translate _ t)
source

IVectorReduceclj/s≠protocol

reduce-vectorclj/s

(reduce-vector _ f xs)
(reduce-vector _ f f2 xs)
source

IVectorTransformclj/s≠protocol

transform-vectorclj/s

(transform-vector _ v)
source

IVertexAccessclj/s≠protocol

verticesclj/s

(vertices _)
(vertices _ opts)
source

IVolumeclj/s≠protocol

signed-volumeclj/s

(signed-volume _)

volumeclj/s

(volume _)

Returns an entity's inner volume.

Returns an entity's inner volume.
source

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

× close