Skip to content

format

typescript
Quaternion.Dot(lhs, rhs)

class: Quaternion

description

Performs a dot product operation on the quaternions lhs and rhs.

parameter

param_nametypedescription
lhsQuaternionThe quaternion lhs.
rhsQuaternionThe quaternion rhs.

return

typedescription
numberThe dot product result.

code example

typescript
function QuaternionTest (){
    let a = new Quaternion(1,1,1,1);
    let b = new Quaternion(1,2,1,2);
    let dot = Quaternion.Dot(a,b);
}