Skip to main content

polygon_vertex_count

Function polygon_vertex_count 

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

Returns V = 2 + m2 + 2m3 + 3m4 + ... using checked u128 arithmetic.

ยงErrors

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