Skip to main content

polygon_edge_count

Function polygon_edge_count 

Source
pub fn polygon_edge_count(m: &TypeVector) -> Result<u128, GeodeError>
Expand description

Returns E = 1 + 2m2 + 3m3 + 4m4 + ... using checked u128 arithmetic.

ยงErrors

Returns GeodeError::ArithmeticOverflow when any intermediate weighted sum exceeds u128.