Implemented a first class BoundingBox, refactored to use bounding box.

This commit is contained in:
2019-02-23 18:28:47 -06:00
parent 7aa99a70a7
commit fc72f2bdc8
6 changed files with 132 additions and 65 deletions

View File

@@ -37,8 +37,6 @@ else
raise RuntimeError, "Unsupported platform."
end
BoundingBox = Struct.new(:min_x, :min_y, :min_z, :max_x, :max_y, :max_z)
if RUBY_VERSION < "2.5.0"
puts "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
puts "|NOTICE| Ruby is #{RUBY_VERSION} not 2.5.0+..............................|Notice|"
@@ -63,6 +61,7 @@ $debug = ARGV.join.include?("--debug") ? true : false
require_relative "lib/common_methods"
require_relative "lib/math/vector"
require_relative "lib/math/bounding_box"
require_relative "lib/trees/aabb_tree"
require_relative "lib/managers/input_mapper"