AreaToolsAreaSignedAboveXaxis Method |
Calculates the area between the x-axis and the line defined by
the (x1,y1) and (x2,y2) coordinates, where the line is above the x-axis.
Where the line is below the x-axis, the area is not considered.
It is calculated with signed such that if x2 > x1 then the area is negative.
Namespace:
DHI.Mike1D.Generic.Spatial.Algorithm
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static double AreaSignedAboveXaxis(
double x1,
double y1,
double x2,
double y2
)
Parameters
- x1
- Type: SystemDouble
X coordinate of start point of line - y1
- Type: SystemDouble
Y coordinate of start point of line - x2
- Type: SystemDouble
X coordinate of end point of line - y2
- Type: SystemDouble
Y coordinate of end point of line
Return Value
Type:
DoubleSigned area above x-axis
See Also