Added vector maths helper functions