Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/mageo/vector3d.rb,
lib/mageo/vector3dinternal.rb

Overview

require ‘mageo/vector3d.rb’

Instance Method Summary collapse

Instance Method Details

#to_v3dObject

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_v3diObject



4
5
6
# File 'lib/mageo/vector3dinternal.rb', line 4

def to_v3di
  Mageo::Vector3DInternal[ *self ]
end