/// <summary> /// Vectors form a 90 degree angle. /// </summary> /// <param name="line1"></param> /// <param name="line2"></param> /// <param name="tolerance">Tolerance by which a double is considered to be zero or equal.</param> /// <returns></returns> public static bool IsOrthogonal(LineSegment line1, LineSegment line2, double tolerance = ZeroTolerance) { return(VectorLibrary.IsOrthogonal(line1.ToVector(), line2.ToVector(), tolerance)); }