import * as remapper from "https://deno.land/x/remapper@2.1.0/src/general.ts";
Functions
Add either a number or another array to an array. | |
Divide an array either by a number or another array. | |
Check if 2 arrays are equal to each other. | |
Get the last element in an array. | |
Multiply an array either by a number or another array. | |
Makes a number fit between a min and max value. | |
f copy | Creates a new instance of an object. |
Create a wall for debugging. Position, rotation, and scale are in world space and can be animations. | |
Gets events between a min and max time, as an Event class. | |
Allows you to filter through an array of objects with a min and max property. | |
Find value between 0 and 1 from a beginning, length, and a point in time between. | |
Get jump related info. | |
Get the amount of seconds in the script. | |
Checks if an object is empty. | |
Check if a property in an object exists | |
Fill the object with empty properties along the path of prop. | |
Get a property of an object. | |
Delete empty objects/arrays from an object recursively. | |
Remove a property of an object recursively, and delete empty objects left behind. | |
Set a property in an object, add objects if needed. | |
f lerp | Interpolates between a start and end value to get a value in between. |
Process a number through an easing. | |
Interpolates between a start and end rotation to get a rotation in between. | |
Interpolates between a start and end value to get a value in between. Will wrap around 0-1. | |
Gets notes between a min and max time, as a Note class. | |
f rand | Gives a random number in the given range. |
Rotate a point around 0,0,0. | |
Rotate a vector, starts downwards. | |
Rounds a number to the nearest other number. | |
Sets the decimals on a number. | |
Sorts an array of objects by a property. | |
Convert an array of numbers from radians to degrees. | |
Convert an array of numbers from degrees to radians. | |
Gets walls between a min and max time, as a Wall class. | |
Calculate the correct position for a wall to line up with a position in the world. |