Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/mageo/vector3d.rb,
lib/mageo/vector3dinternal.rb
Overview
require ‘mageo/vector3d.rb’
Instance Method Summary collapse
-
#to_v3d ⇒ Object
Convert Array to Mageo::Vector3D.
- #to_v3di ⇒ Object
Instance Method Details
#to_v3d ⇒ Object
Convert Array to Mageo::Vector3D
9 10 11 12 |
# File 'lib/mageo/vector3d.rb', line 9 def to_v3d Mageo::Vector3D[*self] #要素数チェックは Mageo::Vector3D.[] 側でやっている。 end |
#to_v3di ⇒ Object
4 5 6 |
# File 'lib/mageo/vector3dinternal.rb', line 4 def to_v3di Mageo::Vector3DInternal[ *self ] end |