/// <summary> /// True: Segments are parallel, on the same line, oriented in the opposite direction. /// </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 IsCollinearOppositeDirection(LineSegment line1, LineSegment line2, double tolerance = ZeroTolerance) { return(VectorLibrary.IsCollinearOppositeDirection(line1.ToVector(), line2.ToVector(), tolerance)); }