8 public Vector2
min {
get;
private set; }
9 public Vector2
max {
get;
private set; }
13 this.min =
new Vector2(Mathf.Clamp01(
min.x), Mathf.Clamp01(
min.y));
14 this.max =
new Vector2(Mathf.Clamp01(
max.x), Mathf.Clamp01(
max.y));
17 public MinMax01(
float minx,
float miny,
float maxx,
float maxy)
19 this.
min =
new Vector2(Mathf.Clamp01(minx), Mathf.Clamp01(miny));
20 this.
max =
new Vector2(Mathf.Clamp01(maxx), Mathf.Clamp01(maxy));
Class containing a minimum and max Vectors with its components between 0 and 1
MinMax01(float minx, float miny, float maxx, float maxy)
MinMax01(Vector2 min, Vector2 max)