/* Iterate a point using the Mandlebrot iterator. */
Iterate a point using the Mandlebrot iterator.
Iterate a point using the Mandlebrot iterator .
fn mandlebrot_iterator(c: Cx, limit: usize) -> usize {
    let mut z = Cx { re: 0.0, im: 0.0 };
    for n in 0..limit {
        z = (z * z) + c;
        if z.sqmod() > SQ_MOD_LIMIT {
            return n;
        }
    }
    limit
}
fn mandlebrot_iterator ( c : Cx , limit : usize ) -> usize { let mut z = Cx { re : 0.0 , im : 0.0 } ; for n in 0 .. limit { z = ( z * z ) + c ; if z . sqmod ( ) > SQ_MOD_LIMIT { return n ; } } limit }
Iterate a point using the Mandlebrot iterator.
Iterate a point using the Mandlebrot iterator .
c
Cx
limit
usize