Class: Assimp::Vec3
- Inherits:
-
Data
- Object
- Data
- Assimp::Vec3
- Defined in:
- lib/assimp/math.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
-
#z ⇒ Object
readonly
Returns the value of attribute z.
Instance Method Summary collapse
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x
4 5 6 |
# File 'lib/assimp/math.rb', line 4 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y
4 5 6 |
# File 'lib/assimp/math.rb', line 4 def y @y end |
#z ⇒ Object (readonly)
Returns the value of attribute z
4 5 6 |
# File 'lib/assimp/math.rb', line 4 def z @z end |
Instance Method Details
#to_a ⇒ Object
5 6 7 |
# File 'lib/assimp/math.rb', line 5 def to_a [x, y, z] end |