Digital differential analyzer
x0:
y0:
x1:
y1:
Solve
{#if solved === true && steps > 0}
dx =
|x1 - x0|
:
dy =
|y1 - y0|
:
steps:
x Increment =
dx / steps
:
y Increment =
dy / steps
:
Iteration
x
y
x (plot)
y (plot)
{#each x_axis as _, i}
{i + 1}
{x_axis[i]}
{y_axis[i]}
{x_axis_floored[i]}
{y_axis_floored[i]}
{/each}
{/if}