Skip to main content

validate_edge_lengths

Function validate_edge_lengths 

Source
pub fn validate_edge_lengths(
    ring: &[[i64; 2]],
    config: &ProtocolConfig,
) -> Option<String>
Expand description

Validate all edges have squared length >= MIN_EDGE_LENGTH_SQUARED. Returns None if valid, Some(error message) if any edge is too short. Matches polygon.move::validate_part_edges().