Liking cljdoc? Tell your friends :D
Clojure only.

org.soulspace.math.types.vector


IVectorcljprotocol

Protocol for vectors.

Protocol for vectors.

addclj

(add this v2)

Adds the vector 'v2' to 'this' vector.

Adds the vector 'v2' to 'this' vector.

distanceclj

(distance this m2)

Calculates the distance of 'this' vector and the vector 'm2'.

Calculates the distance of 'this' vector and the vector 'm2'.

dot-productclj

(dot-product this v2)

Calculates the dot product of 'this' vector with vector'v2'.

Calculates the dot product of 'this' vector with vector'v2'.

normclj

(norm this)

Calculates the norm or magnitude of 'this' vector.

Calculates the norm or magnitude of 'this' vector.

scalar-addclj

(scalar-add this x)

Calculates the scalar addition of 'this' vector with the scalar 'x'.

Calculates the scalar addition of 'this' vector with the scalar 'x'.

scalar-productclj

(scalar-product this x)

Calculates the scalar product of 'this' octonion with the scalar 'x'.

Calculates the scalar product of 'this' octonion with the scalar 'x'.

substractclj

(substract this v2)

Substracts the vector 'v2' from 'this' vector.

Substracts the vector 'v2' from 'this' vector.
sourceraw docstring

vectorclj

(vector e)

Creates a new vector instance from the elements 'e'.

Creates a new vector instance from the elements 'e'.
sourceraw docstring

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

× close