Class: Raylib::BoundingBox
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::BoundingBox
- Defined in:
- lib/raylib/core/structs/bounding_box.rb
Overview
BoundingBox
Class Method Summary collapse
Instance Method Summary collapse
-
#max ⇒ Vector3
Maximum vertex box-corner.
-
#max=(new_max) ⇒ Object
Sets Maximum vertex box-corner.
-
#min ⇒ Vector3
Minimum vertex box-corner.
-
#min=(new_min) ⇒ Object
Sets Minimum vertex box-corner.
- #to_s ⇒ Object
Class Method Details
.create(min, max) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/raylib/core/structs/bounding_box.rb', line 9 def self.create(min, max) new.tap do |instance| instance[:min] = min instance[:max] = max end end |
Instance Method Details
#max ⇒ Vector3
Maximum vertex box-corner
31 |
# File 'lib/raylib/core/structs/bounding_box.rb', line 31 def max = self[:max] |
#max=(new_max) ⇒ Object
Sets Maximum vertex box-corner
34 35 36 |
# File 'lib/raylib/core/structs/bounding_box.rb', line 34 def max=(new_max) self[:max] = new_max end |
#min ⇒ Vector3
Minimum vertex box-corner
22 |
# File 'lib/raylib/core/structs/bounding_box.rb', line 22 def min = self[:min] |
#min=(new_min) ⇒ Object
Sets Minimum vertex box-corner
25 26 27 |
# File 'lib/raylib/core/structs/bounding_box.rb', line 25 def min=(new_min) self[:min] = new_min end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/raylib/core/structs/bounding_box.rb', line 16 def to_s "Raylib::BoundingBox##{object_id} min=#{min} max=#{max}" end |