lib/openstudio-standards/btap/geometry.rb in openstudio-standards-0.2.16 vs lib/openstudio-standards/btap/geometry.rb in openstudio-standards-0.2.17.rc1

- old
+ new

@@ -3750,10 +3750,10 @@ def self.line_segment_overlap_x_coord(y_check:, point_b1:, point_b2:) # If the line is vertical then all x coordinates are the same if point_b1[:x] == point_b2[:x] xcross = point_b2[:x] # If the line is horizontal you cannot find the y intercept - elsif point_b1[:y] == point_b2[:x] + elsif (point_b1[:y] == point_b2[:y]) raise("This line is horizontal so no y intercept can be found.") # Otherwise determine the line coefficients and get the intercept else a = (point_b1[:y] - point_b2[:y]) / (point_b1[:x] - point_b2[:x]) b = point_b1[:y] - a * point_b1[:x]