A 2D vector field is a function that assigns a vector (a quantity with both magnitude and direction) to every point in a 2D space. It is mathematically represented as $f(x,y) = P(x,y)\mathbf{i} + Q(x,y)\mathbf{j}$.
- $P(x,y)$ is the expression for the horizontal movement ($x$-component).
- $Q(x,y)$ is the expression for the vertical movement ($y$-component).
In this visualizer, the particles move along the paths dictated by the vector at their current position. You can use the Gemini generator above to describe your own functions!