Class: RetroRender::Vector3
- Inherits:
-
Object
- Object
- RetroRender::Vector3
- Defined in:
- lib/retro_render.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
-
#z ⇒ Object
Returns the value of attribute z.
Instance Method Summary collapse
-
#initialize(x = 0.0, y = 0.0, z = 0.0) ⇒ Vector3
constructor
A new instance of Vector3.
Constructor Details
#initialize(x = 0.0, y = 0.0, z = 0.0) ⇒ Vector3
Returns a new instance of Vector3.
65 66 67 |
# File 'lib/retro_render.rb', line 65 def initialize(x = 0.0, y = 0.0, z = 0.0) @x, @y, @z = x, y, z end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
61 62 63 |
# File 'lib/retro_render.rb', line 61 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
61 62 63 |
# File 'lib/retro_render.rb', line 61 def y @y end |
#z ⇒ Object
Returns the value of attribute z.
61 62 63 |
# File 'lib/retro_render.rb', line 61 def z @z end |