Class: Assimp::Vec3

Inherits:
Data
  • Object
show all
Defined in:
lib/assimp/math.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#xObject (readonly)

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



4
5
6
# File 'lib/assimp/math.rb', line 4

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



4
5
6
# File 'lib/assimp/math.rb', line 4

def y
  @y
end

#zObject (readonly)

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



4
5
6
# File 'lib/assimp/math.rb', line 4

def z
  @z
end

Instance Method Details

#to_aObject



5
6
7
# File 'lib/assimp/math.rb', line 5

def to_a
  [x, y, z]
end