Liking cljdoc? Tell your friends :D

org.soulspace.math.types.quaternion


create-quaternionclj

(create-quaternion q)
(create-quaternion r i j k)

Creates a new quarternion from the quaternion map 'q' or the real numbers 'r', 'i', 'j' and 'k'.

Creates a new quarternion from the quaternion map 'q' or the real numbers 'r', 'i', 'j' and 'k'.
sourceraw docstring

IQuaternioncljprotocol

Protocol for Quaternions, also known as Hamilton numbers, hyper complex numbers of 4th dimension.

Protocol for Quaternions, also known as Hamilton numbers, hyper complex numbers of 4th dimension.

addclj

(add this q2)

Returns the addition of 'this' quaternion with the quaternion 'q2'.

Returns the addition of 'this' quaternion with the quaternion 'q2'.

conjugateclj

(conjugate this)

Returns the conjugate q* of 'this' quaternion.

Returns the conjugate q* of 'this' quaternion.

multiplyclj

(multiply this q2)

Returns the multiplication of 'this' quaternion with the quaternion 'q2'.

Returns the multiplication of 'this' quaternion with the quaternion 'q2'.

normclj

(norm this)

Returns the norm of 'this' quaternion.

Returns the norm of 'this' quaternion.

scalar-productclj

(scalar-product this x)

Calculates the scalar product of 'this' quaternion with the number 'x'.

Calculates the scalar product of 'this' quaternion with the number 'x'.

substractclj

(substract this q2)

Returns the substraction of 'this' quaternion with the quaternion 'q2'.

Returns the substraction of 'this' quaternion with the quaternion 'q2'.
sourceraw docstring

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

× close