Liking cljdoc? Tell your friends :D

patterning.maths


absclj/s

(abs n)
source

add-pointsclj/s

(add-points [x1 y1] [x2 y2])
source

areaclj/s

(area t)
source

atan2clj/s

(atan2 x y)
source

clock-anglesclj/s

(clock-angles number)
source

clock-angles-as-point-spiralclj/s

(clock-angles-as-point-spiral n)
source

clock-pointsclj/s

(clock-points n r)
source

contains-pointclj/s

(contains-point t [x y])
source

cosclj/s

(cos a)
source

default-randomclj/s

source (clj)source (cljs)

diffclj/s

(diff [x1 y1] [x2 y2])
source

distanceclj/s

(distance p1 p2)
source

drop-everyclj/s

(drop-every n xs)
source

explain-triangleclj/s

(explain-triangle data)

Returns detailed explanation if data is not a valid triangle

Returns detailed explanation if data is not a valid triangle
sourceraw docstring

f-eqclj/s

(f-eq a b)

floating point equality

floating point equality
sourceraw docstring

get-timeclj/s

(get-time)
source (clj)source (cljs)

half-PIclj/s

source

line-to-segmentsclj/s

(line-to-segments points)
source

magnitudeclj/s

(magnitude [dx dy])
source

map-until-repeatclj/s

(map-until-repeat f eq-test ins)
source

mol=clj/s

(mol= x y)

more or less equal

more or less equal
sourceraw docstring

mol=vclj/s

(mol=v xs ys)

more or less equal vectors

more or less equal vectors
sourceraw docstring

molp=clj/s

(molp= [x1 y1] [x2 y2])

more or less equal points

more or less equal points
sourceraw docstring

p-eqclj/s

(p-eq [x1 y1] [x2 y2])

point equality

point equality
sourceraw docstring

perimeterclj/s

(perimeter t)
source

PIclj/s

source

Pointclj/s

source

point-in-listclj/s

(point-in-list p ps)
source

pol-to-recclj/s

(pol-to-rec [r a])
source

q-PIclj/s

source

random-anglesclj/s

(random-angles range random)

Generate a stream of random angles within a specified range. range: maximum angle deviation (e.g., 0.1 for small turns, 0.5 for larger turns) random: RandomGenerator instance

Generate a stream of random angles within a specified range.
range: maximum angle deviation (e.g., 0.1 for small turns, 0.5 for larger turns)
random: RandomGenerator instance
sourceraw docstring

RandomGeneratorclj/sprotocol

randomAngleclj/s

(randomAngle this seed)

randomFloatclj/s

(randomFloat this)

randomIntclj/s

(randomInt this n)

randomNthclj/s

(randomNth this coll)
source

rec-to-polclj/s

(rec-to-pol [x y])
source

revclj/s

(rev [dx dy])
source

rotate-pointclj/s

(rotate-point a [x y])
source

sinclj/s

(sin a)
source

sqrtclj/s

(sqrt x)
source

take-everyclj/s

(take-every n xs)
source

tri=clj/s

(tri= t1 t2)
source

Triangleclj/s

source

triangleclj/s

(triangle [ax ay] [bx by] [cx cy])
(triangle ax ay bx by cx cy)
source

triangle-pointsclj/s

(triangle-points t)
source

TwoPIclj/s

source

txclj/s

(tx o1 o2 t1 t2 x)

transform a scalar from one space to another. o1 is origin min, o2 is origin max, t1 is target min, t2 is target max

transform a scalar from one space to another. o1 is origin min, o2 is origin max, t1 is target min, t2 is target max
sourceraw docstring

unitclj/s

(unit [dx dy])
source

validate-triangleclj/s

(validate-triangle data)

Validates if data is a valid triangle

Validates if data is a valid triangle
sourceraw docstring

wobble-pointclj/s

(wobble-point [qx qy] [x y] & {:keys [random] :or {random default-random}})

add some noise to a point, qx and qy are the x and y ranges of noise

add some noise to a point, qx and qy are the x and y ranges of noise
sourceraw docstring

x-in-listclj/s

(x-in-list x my= xs)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close