Пример #1
0
 public static Size <TResult> Div <T, TResult>(this Size <T> size, Ratio <T, TResult> ratio)
     where T : INumeric <T>, new()
     where TResult : INumeric <TResult>, new()
 {
     return(size.Mul(ratio.Reciprocal()));
 }
Пример #2
0
 public static Point <TResult> Div <T, TResult>(this Point <T> point, Ratio <T, TResult> ratio)
     where T : INumeric <T>, new()
     where TResult : INumeric <TResult>, new()
 {
     return(point.Mul(ratio.Reciprocal()));
 }
Пример #3
0
 public static ContentFrame <TResult> Div <T, TResult>(this ContentFrame <T> frame, Ratio <T, TResult> ratio)
     where T : INumeric <T>, new()
     where TResult : INumeric <TResult>, new()
 {
     return(frame.Mul(ratio.Reciprocal()));
 }
Пример #4
0
 public static Rectangle <TResult> Div <T, TResult>(this Rectangle <T> rectangle, Ratio <T, TResult> ratio)
     where T : INumeric <T>, new()
     where TResult : INumeric <TResult>, new()
 {
     return(rectangle.Mul(ratio.Reciprocal()));
 }
Пример #5
0
 public static TResult Div <T, TResult>(this T value, Ratio <T, TResult> ratio)
     where T : INumeric <T>, new()
     where TResult : INumeric <TResult>, new()
 {
     return(value.Mul(ratio.Reciprocal()));
 }