Exemplo n.º 1
0
 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)));
 }
Exemplo n.º 2
0
 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)));
 }
Exemplo n.º 3
0
 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));
 }
Exemplo n.º 4
0
 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)));
 }
Exemplo n.º 5
0
 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)));
 }
Exemplo n.º 6
0
 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)));
 }