コード例 #1
0
 public static Unitless operator /(Force left, ForcePerUnitless right)
 {
     return(Unitless.FromScalar(left.newtons / right.newtonsPerUnitless));
 }
コード例 #2
0
ファイル: Angle.generated.cs プロジェクト: forki/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="Unitless"/> that is the result from the division.</returns>
 public static Unitless operator /(Angle left, AnglePerUnitless right)
 {
     return(Unitless.FromScalar(left.radians / right.radiansPerUnitless));
 }
コード例 #3
0
ファイル: Length.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="Unitless"/> that is the result from the division.</returns>
 public static Unitless operator /(Length left, LengthPerUnitless right)
 {
     return(Unitless.FromScalar(left.metres / right.metresPerUnitless));
 }