public static Max ( |
||
lhs | ||
rhs | ||
Результат |
public static ScaleFactor Max (ScaleFactor lhs, ScaleFactor rhs)
{
if (lhs > rhs) {
return lhs;
} else {
return lhs;
}
}
ScaleFactor::Max ( int n1, int d1, int n2, int d2, |
public static ScaleFactor Max(int n1, int d1, int n2, int d2, ScaleFactor lastResort) { ScaleFactor a = UseIfValid(n1, d1, lastResort); ScaleFactor b = UseIfValid(n2, d2, lastResort); return(ScaleFactor.Max(a, b)); }