public static float RandomWithDelta(float averidge, float delta) { return(averidge + Maths.Random() * delta); }
public static uint GetCropColor(int r, int g, int b) { return((uint)(Colors.Alpha | (Maths.Crop(r, 0, 255) << 16) | (Maths.Crop(g, 0, 255) << 8) | Maths.Crop(b, 0, 255))); }
public static float Interpolate(float a, float b, float d) { float f = (1f - Maths.Cos(d * Maths.Pi)) * 0.5f; return(a + f * (b - a)); }
public static uint Random() { return((uint)(Maths.UnsignedRandom() * 16777216f)); }