wgpu-matrix
    Preparing search index...

    Variable setTranslation

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

    Type declaration

      • <T extends BaseArgType = number[]>(a: BaseArgType, v: BaseArgType, dst?: T): T
      • Sets the translation component of a 4-by-4 matrix to the given vector.

        Type Parameters

        Parameters

        • a: BaseArgType

          The matrix.

        • v: BaseArgType

          The vector.

        • Optionaldst: T

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

        Returns T

        The matrix with translation set.