dot method

num dot(
  1. Quaternion v
)

Implementation

num dot(Quaternion v) {
  return _x * v._x + _y * v._y + _z * v._z + _w * v._w;
}