Class: Waxy::Geometry::FractionalHex

Inherits:
Object
  • Object
show all
Defined in:
lib/waxy/geometry/fractional_hex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mqObject

Returns the value of attribute mq.



6
7
8
# File 'lib/waxy/geometry/fractional_hex.rb', line 6

def mq
  @mq
end

#mrObject

Returns the value of attribute mr.



6
7
8
# File 'lib/waxy/geometry/fractional_hex.rb', line 6

def mr
  @mr
end

#qObject

Returns the value of attribute q.



6
7
8
# File 'lib/waxy/geometry/fractional_hex.rb', line 6

def q
  @q
end

#rObject

Returns the value of attribute r.



6
7
8
# File 'lib/waxy/geometry/fractional_hex.rb', line 6

def r
  @r
end