Ejemplo 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()));
 }
Ejemplo 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()));
 }
Ejemplo 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()));
 }
Ejemplo 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()));
 }
Ejemplo 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()));
 }