A vector has magnitude and direction. In a 2D plane, this can be represented by a coordinate points. Mathematic notation uses bold or an arrow over the variable to indicate a and vertical bars to represent of a vector.

Magnitude can be calculated as:

Normalized Vector

A Normalized vector is a vector with the same direction but a magnitude of 1. It is calculated as:

Mathematical Operations

Basic operations can be applied to vectors in order to create new vectors. In all examples, assume the following:

and

Addition

Vector addition adds corresponding indices with each other.

Subtraction

Vector subtraction involves reversing the second vector and then performing addition.

Scaling

Scaling a vector can be achieved by multiplying the vector with a Scalar.

Dot Product

The Dot Product is a method of multiplying two vectors to return a scalar. It can be used to calculate a reflection angle in 2D Space.

Assume as the angle between vectors and