Beispiel #1
0
 public static float Clamp(float value, float min, float max)
 {
     if (max < min)
     {
         ExMethods.Swap(ref max, ref min);
     }
     if (value <= min)
     {
         value = min;
     }
     if (value > max)
     {
         value = max;
     }
     return(value);
 }
 public void Transpose()
 {
     ExMethods.Swap(ref m12, ref m21); ExMethods.Swap(ref m13, ref m31); ExMethods.Swap(ref m14, ref m41);
     ExMethods.Swap(ref m23, ref m32); ExMethods.Swap(ref m24, ref m42); ExMethods.Swap(ref m34, ref m43);
 }