Class: Raylib::BoundingBox

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/raylib/core/structs/bounding_box.rb

Overview

BoundingBox

Class Method Summary collapse

Instance Method Summary collapse

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

#maxVector3

Maximum vertex box-corner

Returns:



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

#minVector3

Minimum vertex box-corner

Returns:



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_sObject



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