@sstorsveen/maths - v2.0.1
    Preparing search index...

    Function fill

    • Fills buffer with the elements of the 3x3 matrix m, column by column (i.e. [ r0c0, r1c0, r2c0, r0c1, ..., r2c2 ]).

      The order in which the buffer is filled is suitable for e.g. setting uniform variables in WebGL shader programs

      Type Parameters

      Parameters

      • m: Mat3

        the 3x3 matrix

      • buffer: B

        the buffer to be filled

      Returns B

      buffer, filled with the elemenets of m