format
typescript
Quaternion.Dot(lhs, rhs)class: Quaternion
description
Performs a dot product operation on the quaternions lhs and rhs.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Quaternion | The quaternion lhs. |
| rhs | Quaternion | The quaternion rhs. |
return
| type | description |
|---|---|
number | The 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);
}