Class: Waxy::Geometry::FractionalHex
- Inherits:
-
Object
- Object
- Waxy::Geometry::FractionalHex
- Defined in:
- lib/waxy/geometry/fractional_hex.rb
Instance Attribute Summary collapse
-
#mq ⇒ Object
Returns the value of attribute mq.
-
#mr ⇒ Object
Returns the value of attribute mr.
-
#q ⇒ Object
Returns the value of attribute q.
-
#r ⇒ Object
Returns the value of attribute r.
Instance Method Summary collapse
-
#initialize(_q, _r, _mq, _mr) ⇒ FractionalHex
constructor
Ints.
Constructor Details
#initialize(_q, _r, _mq, _mr) ⇒ FractionalHex
Ints
9 10 11 12 13 14 |
# File 'lib/waxy/geometry/fractional_hex.rb', line 9 def initialize(_q, _r, _mq, _mr) @q = _q @r = _r @mq = _mq @mr = _mr end |
Instance Attribute Details
#mq ⇒ Object
Returns the value of attribute mq.
6 7 8 |
# File 'lib/waxy/geometry/fractional_hex.rb', line 6 def mq @mq end |
#mr ⇒ Object
Returns the value of attribute mr.
6 7 8 |
# File 'lib/waxy/geometry/fractional_hex.rb', line 6 def mr @mr end |
#q ⇒ Object
Returns the value of attribute q.
6 7 8 |
# File 'lib/waxy/geometry/fractional_hex.rb', line 6 def q @q end |
#r ⇒ Object
Returns the value of attribute r.
6 7 8 |
# File 'lib/waxy/geometry/fractional_hex.rb', line 6 def r @r end |