Package gl-matrix/types

    Provides all common type declarations shared across gl-matrix.

    import { Vec3 } from 'gl-matrix';
    import type { Vec3Like } from 'gl-matrix/types';

    const vec: Vec3Like = new Vec3(0, 1, 2);

    For JSDoc using the new Typescript 5.5 @import tag:

    /**
    * @import { Vec3Like } from 'gl-matrix/types'
    */

    For JSDoc using the older import types Typescript mechanism:

    /**
    * @type {import('gl-matrix/types').Vec3Like}
    */

    Type Aliases

    FloatArray
    Mat2dLike
    Mat2Like
    Mat3Like
    Mat4Like
    Quat2Like
    QuatLike
    Vec2Like
    Vec3Like
    Vec4Like