Added vector calculation.

Signed-off-by: Lucas Arnström <lucasarstrom@gmail.com>