MiscCalculations

Miscellaneous calculations.

Functions

Link copied to clipboard
fun calculateDeadzone(input: Double, deadzoneValue: Double): Double

Deadzones an input so it can not be below a certain value. This is a weighted deadzone.

Link copied to clipboard
fun closestPoint(reference: Vector2, points: Array<Vector2>): Vector2

A function to find the closes vector2 (relative to a reference vector2) in an array of vector2s

Link copied to clipboard

A function to get the current time in milliseconds

Link copied to clipboard

Converts Gs to meters per second.