Example #1
0
 public float2 Saturate(float2 v)
 {
     return v.Min(new float2(1, 1)).Max(new float2(0, 0));
 }
Example #2
0
 public Box2(float2 min, float2 max)
 {
     m_min = min.Min(max);
     m_max = min.Max(max);
 }