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

Function pixel_to_point

src/main.rs:83–97  ·  view source on GitHub ↗

Given the row and column of a pixel in the output image, return the corresponding point on the complex plane. `bounds` is a pair giving the width and height of the image in pixels. `pixel` is a (column, row) pair indicating a particular pixel in that image. The `upper_left` and `lower_right` parameters are points on the complex plane designating the area our image covers.

(bounds: (usize, usize),
                  pixel: (usize, usize),
                  upper_left: Complex<f64>,
                  lower_right: Complex<f64>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

renderFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected