NDepend.API Documentation
Linear(Int16,Double,Double,Double,Double) Method
NDepend.Helpers Namespace > ExtensionMethodsMath Class > Linear Method : Linear(Int16,Double,Double,Double,Double) Method
This value.
x coordinate 1
y coordinate 1
x coordinate 2
y coordinate 2
Returns linear value for x between the points (x1, y1) and (x2, y2).
Syntax
[Extension()]
public static double Linear( 
   short x,
   double x1,
   double y1,
   double x2,
   double y2
)

Parameters

x
This value.
x1
x coordinate 1
y1
y coordinate 1
x2
x coordinate 2
y2
y coordinate 2
Remarks
If x is lower than x1 returns y1.
If x is higher than x2 returns y2.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsMath Class
ExtensionMethodsMath Members
Overload List