public static DrawingPointF NextDPointF(this Random random, DrawingPointF min, DrawingPointF max) { return(new DrawingPointF(MathUtil.NextFloat(random, min.X, max.X), MathUtil.NextFloat(random, min.Y, max.Y))); }
public static Color NextColor(this Random random, float minBrightness, float maxBrightness, float minAlpha, float maxAlpha) { return(new Color(MathUtil.NextFloat(random, minBrightness, maxBrightness), MathUtil.NextFloat(random, minBrightness, maxBrightness), MathUtil.NextFloat(random, minBrightness, maxBrightness), MathUtil.NextFloat(random, minAlpha, maxAlpha))); }
public static Color NextColor(this Random random) { return(new Color(MathUtil.NextFloat(random, 0.0f, 1f), MathUtil.NextFloat(random, 0.0f, 1f), MathUtil.NextFloat(random, 0.0f, 1f), 1f)); }
public static Vector4 NextVector4(this Random random, Vector4 min, Vector4 max) { return(new Vector4(MathUtil.NextFloat(random, min.X, max.X), MathUtil.NextFloat(random, min.Y, max.Y), MathUtil.NextFloat(random, min.Z, max.Z), MathUtil.NextFloat(random, min.W, max.W))); }
public static Vector3 NextVector3(this Random random, Vector3 min, Vector3 max) { return(new Vector3(MathUtil.NextFloat(random, min.X, max.X), MathUtil.NextFloat(random, min.Y, max.Y), MathUtil.NextFloat(random, min.Z, max.Z))); }
public static Vector2 NextVector2(this Random random, Vector2 min, Vector2 max) { return(new Vector2(MathUtil.NextFloat(random, min.X, max.X), MathUtil.NextFloat(random, min.Y, max.Y))); }