/// <summary> /// Finds if the 2 vectors are in the same direction /// </summary> /// <param name="v1">THe first vector</param> /// <param name="v2">The second vector</param> /// <returns>whether the 2 vectors have the same direction</returns> public static bool IsSameDirection(MathVector v1, MathVector v2) { v1 = v1.Normalise(); v2 = v2.Normalise(); return v1.Subtract(v2).GetLength() < errorVal; }