Vector2
Vector2 is a two-dimensional vector consisting of two components, commonly named x and y. It is used to represent points, directions, velocities, or other 2D quantities in a plane. In most programming environments, a Vector2 stores its components as numeric values and exposes them as fields or properties for easy access.
Typical operations on Vector2 include addition and subtraction (component-wise), scalar multiplication, and various vector metrics. The
Common uses include representing 2D positions in screens or game worlds, velocities and forces, texture coordinates,
Many frameworks and languages provide their own Vector2 implementations, with slight differences in naming or available