wgpu-matrix
    Preparing search index...

    Variable conjugate

    conjugate: <T extends BaseArgType = number[]>(q: BaseArgType, dst?: T) => T

    Type declaration

      • <T extends BaseArgType = number[]>(q: BaseArgType, dst?: T): T
      • Compute the conjugate of a quaternion For quaternions with a magnitude of 1 (a unit quaternion) this returns the same as the inverse but is faster to calculate.

        Type Parameters

        Parameters

        • q: BaseArgType

          quaternion to compute the conjugate of.

        • Optionaldst: T

          quaternion to hold result. If not passed in a new one is created.

        Returns T

        The conjugate of q