Changed the DotProduct paramater to be a reference like it should be!