module Util3D def self.check_arg_type(type, instance) unless(instance.kind_of?(type)) raise(ArgumentError::new("type mismatch: #{instance.class} for #{type}")) end end def self.raise_argurment_error(instance) raise(ArgumentError::new("type mismatch: #{instance.class}")) end end module GMath3D # Including 'vertices' methodshould be implimented that gets geometry vertices as Array of Vector3. module BoxAvailable # [Output] # return axially aligned bounding box as Box. def box return Box.from_points( vertices ) end end end