My utility functions.
Vector and matrix functions are taken from https://github.com/toji/gl-matrix.
Install with npm:
npm install @trufi/utils
Import the function you need to your project and use it:
import { vec2lerp } from '@trufi/utils';
// or
import { vec2lerp } from '@trufi/utils/vec2';
// or
import { vec2lerp } from '@trufi/utils/vec2/lerp';
- One function — one file.
- Zero dependencies.