Class: JennCad::Transformation
- Inherits:
-
Object
- Object
- JennCad::Transformation
- Defined in:
- lib/jenncad/transformation/transformation.rb
Instance Attribute Summary collapse
-
#coordinates ⇒ Object
Returns the value of attribute coordinates.
-
#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(args) ⇒ Transformation
constructor
A new instance of Transformation.
Constructor Details
#initialize(args) ⇒ Transformation
Returns a new instance of Transformation.
4 5 6 7 8 9 |
# File 'lib/jenncad/transformation/transformation.rb', line 4 def initialize(args) @pos = args[:pos] @x = args[:x] @y = args[:y] @z = args[:z] end |
Instance Attribute Details
#coordinates ⇒ Object
Returns the value of attribute coordinates.
3 4 5 |
# File 'lib/jenncad/transformation/transformation.rb', line 3 def coordinates @coordinates end |
#x ⇒ Object
Returns the value of attribute x.
3 4 5 |
# File 'lib/jenncad/transformation/transformation.rb', line 3 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
3 4 5 |
# File 'lib/jenncad/transformation/transformation.rb', line 3 def y @y end |
#z ⇒ Object
Returns the value of attribute z.
3 4 5 |
# File 'lib/jenncad/transformation/transformation.rb', line 3 def z @z end |