Liking cljdoc? Tell your friends :D

somekit.math


fractcljs

(fract n)

get fractional part of number

get fractional part of number
sourceraw docstring

halfcljs

(half n)

halfs a number

halfs a number
sourceraw docstring

lerpcljs

(lerp a b t)
source

picljs

(pi n)

Returns PI * argument

Returns PI * argument
sourceraw docstring

randomcljs

(random)
(random a)
(random a b)

Wraps Math/random with arguments.

Wraps Math/random with arguments.
sourceraw docstring

random-boolcljs

(random-bool)
(random-bool threshold)

Returns true if random is greater than threshold. If no argument is given, threshold is 0.5 by default.

Returns true if random is greater than threshold. If no argument is given,
threshold is 0.5 by default.
sourceraw docstring

random-nth-customcljs

(random-nth-custom coll fn)

returns random element from collection with custom random

returns random element from collection with custom random
sourceraw docstring

range-from-centercljs

(range-from-center center size)

Returns two numbers defining a range given a center and a range size

Returns two numbers defining a range given a center and a range size
sourceraw docstring

scalecljs

(scale n start1 stop1 start2 stop2)

scales a number to a new range

scales a number to a new range
sourceraw docstring

TAUcljs

source

threshold-boolcljs

(threshold-bool n threshold)

returns true if number is greater than threshold

returns true if number is greater than threshold
sourceraw docstring

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

× close