コード例 #1
0
 /// <summary>
 /// Divides <paramref name="left"/> by <paramref name="right"/>
 /// </summary>
 /// <param name="left">The left value</param>
 /// <param name="right">The right value</param>
 /// <returns>The <see cref="Pressure"/> that is the result from the division.</returns>
 public static Pressure operator /(Energy left, Volume right)
 {
     return(Pressure.FromPascals(left.joules / right.cubicMetres));
 }
コード例 #2
0
 public static Pressure operator /(Force left, Area right)
 {
     return(Pressure.FromPascals(left.newtons / right.squareMetres));
 }
コード例 #3
0
ファイル: Power.generated.cs プロジェクト: pockees/Gu.Units
 /// <summary>
 /// Divides <paramref name="left"/> by <paramref name="right"/>
 /// </summary>
 /// <param name="left">The left value</param>
 /// <param name="right">The right value</param>
 /// <returns>The <see cref="Pressure"/> that is the result from the division.</returns>
 public static Pressure operator /(Power left, VolumetricFlow right)
 {
     return(Pressure.FromPascals(left.watts / right.cubicMetresPerSecond));
 }
コード例 #4
0
 public static Pressure operator /(Wavenumber left, Flexibility right)
 {
     return(Pressure.FromPascals(left.reciprocalMetres / right.metresPerNewton));
 }
コード例 #5
0
 public static Pressure operator *(Wavenumber left, Stiffness right)
 {
     return(Pressure.FromPascals(left.reciprocalMetres * right.newtonsPerMetre));
 }
コード例 #6
0
 /// <summary>
 /// Divides <paramref name="left"/> by <paramref name="right"/>
 /// </summary>
 /// <param name="left">The left value</param>
 /// <param name="right">The right value</param>
 /// <returns>The <see cref="Pressure"/> that is the result from the division.</returns>
 public static Pressure operator /(SpecificEnergy left, SpecificVolume right)
 {
     return(Pressure.FromPascals(left.joulesPerKilogram / right.cubicMetresPerKilogram));
 }
コード例 #7
0
 /// <summary>
 /// Multiplies <paramref name="left"/> with <paramref name="right"/>
 /// </summary>
 /// <param name="left">The left value</param>
 /// <param name="right">The right value</param>
 /// <returns>The <see cref="Pressure"/> that is the result from the multiplication.</returns>
 public static Pressure operator *(SpecificEnergy left, Density right)
 {
     return(Pressure.FromPascals(left.joulesPerKilogram * right.kilogramsPerCubicMetre));
 }