17 using System.Runtime.CompilerServices;
33 [MethodImpl(MethodImplOptions.AggressiveInlining)]
36 return Math.Max(0.0m,
GetPayOff(underlyingPrice, strike, right));
46 [MethodImpl(MethodImplOptions.AggressiveInlining)]
49 return Math.Max(0.0,
GetPayOff(underlyingPrice, strike, right));
59 [MethodImpl(MethodImplOptions.AggressiveInlining)]
62 return right ==
OptionRight.Call ? underlyingPrice - strike : strike - underlyingPrice;
72 [MethodImpl(MethodImplOptions.AggressiveInlining)]
75 return right ==
OptionRight.Call ? underlyingPrice - strike : strike - underlyingPrice;