Math
Wrapper for some mathematical helpers.
Installation
npm install @pencil.js/math
Examples
import * as PMath from "@pencil.js/math";
PMath.truncate(-99.9); // -99
// or
import { constrain } from "@pencil.js/math";
constrain(99, 0, 10); // 10
Documentation
Go check the full documentation.