Math - lnx00/Lmaobox-Library GitHub Wiki
lnxLib.Utils.Math
Math utilities and functions that are commonly used.
Functions
- .NormalizeAngle(angle)Normalizes an angle to be between -180 and 180.
- .RemapValClamped(val, A, B, C, D)Remaps a value from one range to another.
- .PositionAngles(source, dest)Calculates the EulerAngle between the source and destination vectors.
- .AngleFov(from, to)Calculates the FOV between the two angles.
- .SolveProjectile(origin, target, speed, gravity)Tries to find the angles needed to hit the target with a projectile (ballistic and straight).