Liking cljdoc? Tell your friends :D

some.polyline


addclj/s

(add v1 v2)

adds two vectors of same dimension together

adds two vectors of same dimension together
raw docstring

clampclj/s

(clamp n lower upper)

distanceclj/s

(distance v1 v2)

Calculates distance between two vectors of same dimension

Calculates distance between two vectors of same dimension
raw docstring

dx->xclj/s

(dx->x start list)

From a list of intervals, create a list.

For example: [1 1 1] -> [0 1 2 3] [1 2 3] -> [0 1 3 6]

From a list of intervals, create a list.

For example:
[1 1 1] -> [0 1 2 3]
[1 2 3] -> [0 1 3 6]
raw docstring

lengthclj/s

(length polyline)

Returns the length of a polyline.

Returns the length of a polyline.
raw docstring

lengthsclj/s

(lengths polyline)

Returns the lengths between each vertex of a polyline. The size of the output is N-1.

Returns the lengths between each vertex of a polyline.
The size of the output is N-1.
raw docstring

lengthvclj/s

(lengthv v)

Returns the length of a vector of any dimension.

Returns the length of a vector of any dimension.
raw docstring

lerpclj/s

(lerp polyline t)

Returns a point on the polyline at t (float between 0-1).

Returns a point on the polyline at t (float between 0-1).
raw docstring

lerpnclj/s

(lerpn a b t)

lerpvclj/s

(lerpv v1 v2 t)

Lerps between two vectors

Lerps between two vectors
raw docstring

mul-scalarclj/s

(mul-scalar v scalar)

Multiplies vector by a scalar

Multiplies vector by a scalar
raw docstring

normalizeclj/s

(normalize v)

Returns a vector of any dimension normalized

Returns a vector of any dimension normalized
raw docstring

normalize-rangeclj/s

(normalize-range list)

Divides every element in vector by total sum

Divides every element in vector by total sum
raw docstring

normalsclj/s

(normals polyline)

pad-endclj/s

(pad-end vector value)
(pad-end vector value pad-size)

pads end of vector with value and pad size

pads end of vector with value and pad size
raw docstring

pad-startclj/s

(pad-start vector value)
(pad-start vector value pad-size)

pads start of vector with value and pad size

pads start of vector with value and pad size
raw docstring

pad-wrapclj/s

(pad-wrap vector)

pads start of vector with end and end of vector with start

pads start of vector with end and end of vector with start
raw docstring

resample-by-countclj/s

(resample-by-count polyline n)

Resamples the polyline evenly

Resamples the polyline evenly
raw docstring

resample-by-lengthclj/s

(resample-by-length polyline len)

Resamples the polyline by a length

Resamples the polyline by a length
raw docstring

scaleclj/s

(scale n start1 stop1 start2 stop2)

scales a number to a new range

scales a number to a new range
raw docstring

smoothclj/s

(smooth polyline size & closed)

Returns a smoothed polyline. The size indicates how many verices to the left and right of each vertex to take when smoothing. This is a basic rolling average of a line. Optional third argument indicates if line is wrapped.

Returns a smoothed polyline. The size indicates how many verices to the left
and right of each vertex to take when smoothing. This is a basic rolling
average of a line. Optional third argument indicates if line is wrapped.
raw docstring

subclj/s

(sub v1 v2)

Substracts 2 vectors of same dimension

Substracts 2 vectors of same dimension
raw docstring

within-rangeclj/s

(within-range range num)

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

× close