Clampraises whenminis greater thanmax.Roundrounds half away from zero.decimalsis 0 to 10, default 0, and 0 returns an integer.Lerpdoes not clampt, so values outside 0 to 1 extrapolate.InverseLerpreturns 0 whenaequalsb.Remapdoes not clamp.Distance2Dignores height. It takes vectors or tables withxandy.PointInPolygontests on the ground plane, with at least 3 points in order.RotationToDirectionturns a rotation in degrees, such asGetGameplayCamRot(2), into a unit direction.
UgLib.Math
Numbers, distances and directions.
Shared Runs in your resource.