Liking cljdoc? Tell your friends :D

org.soulspace.math.vector


addclj/s

(add v)
(add v w)
(add v w & vs)

Adds the vectors v and w.

Adds the vectors v and w.
sourceraw docstring

angleclj/s

(angle v w)

Calculates the cross product for 2 vectors 'v' and 'w' of dimension 3.

Calculates the cross product for 2 vectors 'v' and 'w' of dimension 3.
sourceraw docstring

cross-productclj/s

(cross-product v w)

Calculates the cross product for 2 vectors 'v' and 'w' of dimension 3.

Calculates the cross product for 2 vectors 'v' and 'w' of dimension 3.
sourceraw docstring

dimensionclj/s

Returns the dimension of the vector v.

Returns the dimension of the vector v.
sourceraw docstring

distanceclj/s

(distance v w)

Returns the distance of the vectors v and w.

Returns the distance of the vectors v and w.
sourceraw docstring

dot-productclj/s

(dot-product v w)

Calculates the dot product of the vectors v and w.

Calculates the dot product of the vectors v and w.
sourceraw docstring

magnitudeclj/s

(magnitude v)

Calculates the norm or magnitude ||v|| of the vector 'v'.

Calculates the norm or magnitude ||v|| of the vector 'v'.
sourceraw docstring

normclj/s

Calculates the norm or magnitude ||v|| of the vector 'v'.

Calculates the norm or magnitude ||v|| of the vector 'v'.
sourceraw docstring

normalizeclj/s

(normalize v)

Returns a vector with a length of 1 in the direction of v.

Returns a vector with a length of 1 in the direction of v.
sourceraw docstring

scalar-addclj/s

(scalar-add s v)

Adds a scalar s to the vector v.

Adds a scalar s to the vector v.
sourceraw docstring

scalar-productclj/s

(scalar-product s v)

Multiplies a scalar s to the vector v.

Multiplies a scalar s to the vector v.
sourceraw docstring

substractclj/s

(substract v w)

Substracts the vectors v and w.

Substracts the vectors v and w.
sourceraw docstring

sumclj/s

(sum & vs)

Adds the given vectors.

Adds the given vectors.
sourceraw docstring

sum-of-squaresclj/s

(sum-of-squares v)

Returns the sum of the squares of the elements of v.

Returns the sum of the squares of the elements of v.
sourceraw docstring

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

× close