Package Exports
- @aceworks-studio/math
- @aceworks-studio/math/src/init.lua
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aceworks-studio/math) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@aceworks-studio/math
A set of utility functions related to math or numbers.
Installation
Add @aceworks-studio/math in your dependencies:
yarn add @aceworks-studio/mathOr if you are using npm:
npm install @aceworks-studio/mathContent
isFinite
function isFinite(value: number): booleanReturns true if the number not equal to infinity (or negative infinity) or NaN.
isInteger
function isInteger(value: number): booleanReturns true if the number is finite and a whole number (no decimal part).
isNaN
function isNaN(value: number): booleanReturns true if the number is NaN.
lerp
function lerp(initialValue: number, finalValue: number, alpha: number): numberReturns a number interpolated between an initial value and a final value using a number alpha between 0 and 1.
License
This project is available under the MIT license. See LICENSE.txt for details.
Other Lua Environments Support
If you would like to use this library on a Lua environment where it is currently incompatible, open an issue (or comment on an existing one) to request the appropriate modifications.
The library uses darklua to process its code.