rewrote Trig functionality so that it would be inlined, and also made it more generic by templating some of it to work on all kinds of vectors
polygon mask implementation added + functionality for projecting to hyperplanes for colliosion checking