Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/ray/rect.rb,
lib/ray/vector.rb
Instance Method Summary collapse
-
#to_rect ⇒ Ray::Rect
Converts an array to a rect.
-
#to_vector2 ⇒ Ray::Vector2
Converts an array into a vector2.
-
#to_vector3 ⇒ Ray::Vector3
Converts an array into a vector3.
Instance Method Details
#to_rect ⇒ Ray::Rect
Returns Converts an array to a rect.
106 107 108 |
# File 'lib/ray/rect.rb', line 106 def to_rect Ray::Rect.new(*self) end |
#to_vector2 ⇒ Ray::Vector2
Returns Converts an array into a vector2.
293 294 295 |
# File 'lib/ray/vector.rb', line 293 def to_vector2 Ray::Vector2[*self] end |
#to_vector3 ⇒ Ray::Vector3
Returns Converts an array into a vector3.
298 299 300 |
# File 'lib/ray/vector.rb', line 298 def to_vector3 Ray::Vector3[*self] end |