We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831e139 commit 10f1153Copy full SHA for 10f1153
lib/geometry/segment.rb
@@ -58,7 +58,7 @@ def intersection_point_with(segment)
58
denominator = (point2.y - point1.y) *
59
(segment.point1.x - segment.point2.x) -
60
(segment.point1.y - segment.point2.y) *
61
- (point2.x - point1.x);
+ (point2.x - point1.x)
62
63
if numerator.is_a?(Integer) && denominator.is_a?(Integer)
64
numerator = numerator.to_f
0 commit comments