Exemple #1
0
 /// <summary>
 ///     Gets a <see cref="PowerRatio" /> from this <see cref="Power" /> relative to one watt.
 /// </summary>
 /// <remarks>
 ///     Provides a nicer syntax for converting a power to a power ratio (relative to 1 watt).
 ///     <example>
 ///         <c>var powerRatio = power.ToPowerRatio();</c>
 ///     </example>
 /// </remarks>
 public PowerRatio ToPowerRatio()
 {
     return(PowerRatio.FromPower(this));
 }
Exemple #2
0
 /// <summary>
 ///     Gets a <see cref="PowerRatio"/> from a <see cref="Power"/> relative to one watt.
 /// </summary>
 /// <remarks>
 /// Provides a nicer syntax for converting a power to a power ratio (relative to 1 watt).
 /// <example><c>var powerRatio = power.ToPowerRatio();</c></example>
 /// </remarks>
 public static PowerRatio ToPowerRatio(this Power power)
 {
     return(PowerRatio.FromPower(power));
 }