Skip to main content

try_slope

Function try_slope 

Source
pub fn try_slope(
    left: Point2,
    right: Point2,
) -> Result<Option<f64>, GeometryError>
Expand description

Returns the slope between two points when both points contain only finite coordinates.

ยงErrors

Returns GeometryError::NonFiniteComponent when either point contains a non-finite coordinate.