gl-matrix-eval
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

glMartixEval

Actions Status NPM Version

glMatrix calculate library, use eval replace with func call

import MatrixEval from 'gl-matrix-eval';
import {vec2, vec3} from 'gl-matrix';

const add = new MatrixEval('v1 + v2');

console.info(add.exec({
    v1: vec2.fromValues(1, 2),
    v2: vec2.fromValues(2, 3),
})); // return vec2(3, 4);

console.info(add.exec({
    v1: vec3.fromValues(1, 2, 3),
    v2: vec3.fromValues(2, 3, 4),
})); // return vec3(3, 4, 7);

/gl-matrix-eval/

    Package Sidebar

    Install

    npm i gl-matrix-eval

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    43.3 kB

    Total Files

    24

    Last publish

    Collaborators

    • hugehard