Class: MagicaVoxel::Vector3

Inherits:
Struct
  • Object
show all
Defined in:
lib/magica_voxel.rb

Overview

The Vector3

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



40
41
42
# File 'lib/magica_voxel.rb', line 40

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



40
41
42
# File 'lib/magica_voxel.rb', line 40

def y
  @y
end

#zObject

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



40
41
42
# File 'lib/magica_voxel.rb', line 40

def z
  @z
end