Esempio n. 1
0
 /// <summary>
 /// Returns true if weigh1 smaller than weight2 according to the weight handler.
 /// </summary>
 public static bool IsSmallerThanOrEqual <T>(this WeightHandler <T> handler, T weight1, T weight2)
     where T : struct
 {
     return(handler.GetMetric(weight1) <= handler.GetMetric(weight2));
 }
Esempio n. 2
0
 /// <summary>
 /// Returns true if weigh1 smaller than metric according to the weight handler.
 /// </summary>
 public static bool IsSmallerThan <T>(this WeightHandler <T> handler, T weight1, float metric)
     where T : struct
 {
     return(handler.GetMetric(weight1) < metric);
 }
Esempio n. 3
0
 /// <summary>
 /// Returns true if weigh1 > weight2 according to the weight handler.
 /// </summary>
 public static bool IsLargerThan <T>(this WeightHandler <T> handler, T weight1, T weight2)
     where T : struct
 {
     return(handler.GetMetric(weight1) > handler.GetMetric(weight2));
 }