MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / compute_y_at_x

Method compute_y_at_x

src/geometry/segment.rs:41–44  ·  view source on GitHub ↗

Compute the value of y at x. Uses the line equation, and assumes the segment has infinite length.

(&self, x: f64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

is_colinearMethod · 0.80

Calls 1

get_line_equationMethod · 0.80

Tested by

no test coverage detected