Esempio n. 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()));
 }
Esempio n. 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()));
 }
Esempio n. 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()));
 }
Esempio n. 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()));
 }
Esempio n. 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()));
 }