wgpu-matrix
    Preparing search index...

    Variable rotationTo

    rotationTo: <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
        aUnit: BaseArgType,
        bUnit: BaseArgType,
        dst?: T,
    ) => T

    Type declaration

      • <T extends BaseArgType = Float64Array<ArrayBufferLike>>(
            aUnit: BaseArgType,
            bUnit: BaseArgType,
            dst?: T,
        ): T
      • Computes a quaternion to represent the shortest rotation from one vector to another.

        Type Parameters

        Parameters

        • aUnit: BaseArgType

          the start vector

        • bUnit: BaseArgType

          the end vector

        • Optionaldst: T

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

        Returns T

        the result