add method

Q add(
  1. Q o
)

Returns a new quaternion that is the component-wise sum of this and o.

Implementation

Q add(Q o) => _q(x + o.x, y + o.y, z + o.z, w + o.w);