line_mx_plus_b#

sectionproperties.pre.bisect_section.line_mx_plus_b(line: LineString) tuple[float, float | None][source]#

Get the slope and y-intercept of a line.

Returns a tuple representing the values of “m” and “b” from the definition of line as “y = mx + b”.

Parameters:

line (LineString) – Line to define

Returns:

Gradient and y-intercept of line, (1, None) if vertical

Return type:

tuple[float, float | None]