vector and matrix setup

Setup the vectors and matrix needed to compute transformations.