Описание тега 2d-vector

A mathematical entity used to represent a direction in a plane (among other things) and that can be represented as a pair of real numbers. This tags also pertains to all the possible applications and representations of such an entity in a computer language.

A 2d vector is a 2 x 1 matrix (2 rows and 1 column) which has 2 dimensions:

  • A horizontal component (i)
  • A vertical component (j)

Vectors are commonly used in math and also in programming for things like GUI's with moving images (each image could have a position vector and a velocity vector). Vectors are implemented like normal arrays, the i and j components can be changed and indexed in the same way.