Function setDefaultType

  • Sets the type this library creates for a Mat4

    Parameters

    • ctor: (new (n) => Mat4)

      the constructor for the type. Either Float32Array, Float64Array, or Array

        • new (n): Mat4
        • Parameters

          • n: number

          Returns Mat4

    Returns Mat4LikeCtor

    previous constructor for Mat4