Made midpoint calculation between two vectors a hypermath function