MCPcopy Create free account
hub / github.com/ProgrammingRust/mandelbrot / escape_time

Function escape_time

src/main.rs:15–25  ·  view source on GitHub ↗

Try to determine if `c` is in the Mandelbrot set, using at most `limit` iterations to decide. If `c` is not a member, return `Some(i)`, where `i` is the number of iterations it took for `c` to leave the circle of radius two centered on the origin. If `c` seems to be a member (more precisely, if we reached the iteration limit without being able to prove that `c` is not a member), return `None`.

(c: Complex<f64>, limit: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected