Dot product or something else probably would've been faster