Liking cljdoc? Tell your friends :D

thi.ng.geom.core


*resolution*clj/s

source

IAlignclj/sprotocol

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/sprotocol

areaclj/s

(area _)

Returns an entity's total surface area

Returns an entity's total surface area
source

IAttributeAccessclj/sprotocol

attribsclj/s

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

IBoundaryclj/sprotocol

contains-entity?clj/s

(contains-entity? _ s)

contains-point?clj/s

(contains-point? _ p)
source

IBoundingCircleclj/sprotocol

bounding-circleclj/s

(bounding-circle _)
source

IBoundingSphereclj/sprotocol

bounding-sphereclj/s

(bounding-sphere _)
source

IBoundsclj/sprotocol

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/sprotocol

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/sprotocol

circumferenceclj/s

(circumference _)

Returns an entity's circumference

Returns an entity's circumference
source

IClassifyclj/sprotocol

classify-pointclj/s

(classify-point _ p)
source

IClearclj/sprotocol

clear!clj/s

(clear! _)

clear*clj/s

(clear* _)
source

IClipclj/sprotocol

clip-withclj/s

(clip-with _ s)
source

IConvexHullclj/sprotocol

convex-hullclj/s

(convex-hull _)
source

IDirectedGraphclj/sprotocol

in-verticesclj/s

(in-vertices _ v)

out-verticesclj/s

(out-vertices _ v)
source

IDistanceclj/sprotocol

distclj/s

(dist _ a)

dist-squaredclj/s

(dist-squared _ a)
source

IEdgeAccessclj/sprotocol

edgesclj/s

(edges _)
(edges _ opts)
source

IExtrudeclj/sprotocol

extrudeclj/s

(extrude _ opts)

extrude-shellclj/s

(extrude-shell _ opts)
source

IFaceAccessclj/sprotocol

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]]}])

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.

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.

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

IFlipclj/sprotocol

flipclj/s

(flip _)
source

IGeomContainerclj/sprotocol

intoclj/s

(into _ m)
source

IGraphclj/sprotocol

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/sprotocol

as-graphclj/s

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

IHeadingclj/sprotocol

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/sprotocol

insetclj/s

(inset _ inset)
source

IIntersectclj/sprotocol

intersect-lineclj/s

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

intersect-rayclj/s

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

intersect-shapeclj/s

(intersect-shape _ s)
source

IMatrixConvertclj/sprotocol

as-matrixclj/s

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

IMeshConvertclj/sprotocol

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/sprotocol

get-propclj/s

(get-prop _ k)

set-prop!clj/s

(set-prop! _ k v)

update-prop!clj/s

(update-prop! _ k f)
source

INormalclj/sprotocol

normalclj/s

(normal _)
(normal _ a)
source

INormalAccessclj/sprotocol

compute-face-normalsclj/s

(compute-face-normals _)

compute-vertex-normalsclj/s

(compute-vertex-normals _)

face-normalclj/s

(face-normal _ f)

face-normalsclj/s

(face-normals _ force?)

vertex-normalclj/s

(vertex-normal _ v)

vertex-normalsclj/s

(vertex-normals _ force?)
source

IPointMapclj/sprotocol

map-pointclj/s

(map-point _ p)

unmap-pointclj/s

(unmap-point _ p)
source

IPolarclj/sprotocol

as-cartesianclj/s

(as-cartesian _)

as-polarclj/s

(as-polar _)
source

IPolygonConvertclj/sprotocol

as-polygonclj/s

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

Transforms current entity into a Polygon2 instance

Transforms current entity into a Polygon2 instance
source

IProximityclj/sprotocol

closest-pointclj/s

(closest-point _ p)
source

IRawAccessclj/sprotocol

rawclj/s

(raw _ ctx)
source

IReflectclj/sprotocol

reflectclj/s

(reflect _ r)
source

IRotateclj/sprotocol

rotateclj/s

(rotate _ t)
source

IRotate3Dclj/sprotocol

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/sprotocol

point-atclj/s

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

random-pointclj/s

(random-point _)

random-point-insideclj/s

(random-point-inside _)

sample-uniformclj/s

(sample-uniform _ dist include-last?)

sample-with-resolutionclj/s

(sample-with-resolution _ res)
source

IScaleclj/sprotocol

scaleclj/s

(scale _ s)

scale-sizeclj/s

(scale-size _ s)
source

IShearclj/sprotocol

shearclj/s

(shear _ s)
source

ISliceclj/sprotocol

slice-withclj/s

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

ISpatialTreeclj/sprotocol

add-pointclj/s

(add-point _ p d)

delete-pointclj/s

(delete-point _ p)

get-pointclj/s

(get-point _)

get-point-dataclj/s

(get-point-data _)
source

ISubdivideclj/sprotocol

subdivideclj/s

(subdivide _)
(subdivide _ opts)

subdivide-edgeclj/s

(subdivide-edge _ a b splits)

subdivide-faceclj/s

(subdivide-face _ f p displace splits)
source

ITessellateclj/sprotocol

tessellateclj/s

(tessellate _)
(tessellate _ opts)
source

ITransformclj/sprotocol

transformclj/s

(transform _ tx)
source

ITranslateclj/sprotocol

translateclj/s

(translate _ t)
source

IVectorReduceclj/sprotocol

reduce-vectorclj/s

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

IVectorTransformclj/sprotocol

transform-vectorclj/s

(transform-vector _ v)
source

IVertexAccessclj/sprotocol

verticesclj/s

(vertices _)
(vertices _ opts)
source

IVolumeclj/sprotocol

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