2D Vectors

In what follows are various notes and equations dealing with 2D vectors.

Magnitude

\(\lvert a \rvert = \sqrt{a_x^2 + a_y^2}\)

Distance Between Two Points

\(\lvert B - A \rvert = \sqrt{(B_x - A_x)^2 + (B_y - A_y)^2}\)

Dot Product

\(a \cdot b = a_xb_x + a_yb_y\)

Notes:

Cross Product

\(a \times b = a_xb_y - a_yb_x\)

Notes:

Parallel

Perpendicular

Angle Between Two Vectors

Rotate