(add v)
(add v w)
(add v w & vs)
Adds the vectors v
and w
.
Adds the vectors `v` and `w`.
(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.
(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.
Returns the dimension of the vector v
.
Returns the dimension of the vector `v`.
(distance v w)
Returns the distance of the vectors v
and w
.
Returns the distance of the vectors `v` and `w`.
(dot-product v w)
Calculates the dot product of the vectors v
and w
.
Calculates the dot product of the vectors `v` and `w`.
(magnitude v)
Calculates the norm or magnitude ||v|| of the vector v
.
Calculates the norm or magnitude ||v|| of the vector `v`.
Calculates the norm or magnitude ||v|| of the vector v
.
Calculates the norm or magnitude ||v|| of the vector `v`.
(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`.
(scalar-add s v)
Adds a scalar s
to the vector v
.
Adds a scalar `s` to the vector `v`.
(scalar-product s v)
Multiplies a scalar s
to the vector v
.
Multiplies a scalar `s` to the vector `v`.
(substract v w)
Substracts the vectors v
and w
.
Substracts the vectors `v` and `w`.
(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`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close