Class: Assimp::Quat

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#wObject (readonly)

Returns the value of attribute w

Returns:

  • (Object)

    the current value of w



10
11
12
# File 'lib/assimp/math.rb', line 10

def w
  @w
end

#xObject (readonly)

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



10
11
12
# File 'lib/assimp/math.rb', line 10

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



10
11
12
# File 'lib/assimp/math.rb', line 10

def y
  @y
end

#zObject (readonly)

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



10
11
12
# File 'lib/assimp/math.rb', line 10

def z
  @z
end

Instance Method Details

#to_aObject



11
12
13
# File 'lib/assimp/math.rb', line 11

def to_a
  [x, y, z, w]
end