Package gl-matrix/classic

    Provides aliases for backwards compatibility with the 3.x API (32-bit).

    To facilitate easier adoption of version 4 of gl-matrix and maintain compatability with existing codebases the modern API can be accessed via remapped exports matching the version 3 API from the gl-matrix/classic sub-path export. The only change required is altering imports from gl-matrix to gl-matrix/classic.

    import { vec3 } from 'gl-matrix/classic';

    const vec = vec3.create();

    References

    mat2 → Mat2
    mat2d → Mat2d
    mat3 → Mat3
    mat4 → Mat4
    quat → Quat
    quat2 → Quat2
    vec2 → Vec2
    vec3 → Vec3
    vec4 → Vec4