wgpu-matrix
    Preparing search index...

    Variable translation

    translation: <T extends BaseArgType = number[]>(v: BaseArgType, dst?: T) => T

    Type declaration

      • <T extends BaseArgType = number[]>(v: BaseArgType, dst?: T): T
      • Creates a 4-by-4 matrix which translates by the given vector v.

        Type Parameters

        Parameters

        • v: BaseArgType

          The vector by which to translate.

        • Optionaldst: T

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

        Returns T

        The translation matrix.