wgpu-matrix
    Preparing search index...

    Variable identity

    identity: <T extends BaseArgType = Float32Array<ArrayBufferLike>>(dst?: T) => T

    Type declaration

      • <T extends BaseArgType = Float32Array<ArrayBufferLike>>(dst?: T): T
      • Creates a 4-by-4 identity matrix.

        Type Parameters

        Parameters

        • Optionaldst: T

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

        Returns T

        A 4-by-4 identity matrix.