Sha256: 553898f696bc64415a9a43fa0c4c3c4662b55e332eae1cca0e1f4f5161acfd7c
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gmath3D-0.2.4 | lib/util.rb |