wgpu-matrix
    Preparing search index...

    Variable getTranslation

    getTranslation: <T extends BaseArgType = number[]>(m: BaseArgType, dst?: T) => T

    Type declaration

      • <T extends BaseArgType = number[]>(m: BaseArgType, dst?: T): T
      • Returns the translation component of a 3-by-3 matrix as a vector with 3 entries.

        Type Parameters

        Parameters

        • m: BaseArgType

          The matrix.

        • Optionaldst: T

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

        Returns T

        The translation component of m.