Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dragon/geometry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# MIT License
# geometry.rb has been released under MIT (*only this file*).

# Contributors outside of DragonRuby who also hold Copyright:
# - Lucas Haley: https://github.com/lucashaley


module GTK
module Geometry
def inside_rect? outer, tolerance = 0.0
Expand Down Expand Up @@ -935,7 +939,7 @@ def circle? shape
def intersect_circle? circle_one, circle_two
resolved_circle_one = rect_to_circle circle_one
resolved_circle_two = rect_to_circle circle_two
distance_squared(circle_one, circle_two) <= (circle_one.radius + circle_two.radius)**2
distance_squared(resolved_circle_one, resolved_circle_two) <= (resolved_circle_one.radius + resolved_circle_two.radius)**2
rescue Exception => e
raise e, <<-S
* ERROR:
Expand Down