Skip to main content

edge_squared_length

Function edge_squared_length 

Source
pub fn edge_squared_length(ax: i64, ay: i64, bx: i64, by: i64) -> u128
Expand description

Squared Euclidean distance between two points (using i128 to avoid overflow). Returns dx² + dy². Used for edge length validation (compare against MIN_EDGE_LENGTH_SQUARED).