Class: Hexagonly::Hexagon

Inherits:
Object
  • Object
show all
Includes:
Methods
Defined in:
lib/hexagonly/hexagon.rb

Defined Under Namespace

Modules: Methods

Instance Attribute Summary

Attributes included from Methods

#hex_center, #hex_size

Attributes included from Polygon::Methods

#collected_points, #rejected_points

Instance Method Summary collapse

Methods included from Methods

#contains?, #hex_corners, #hex_v_size, included, #loosely_contains?, #north_east_hexagon, #setup_hex, #south_east_hexagon, #south_hexagon, #to_geojson

Methods included from Polygon::Methods

#contains?, #grab, included, #poly_points

Constructor Details

#initialize(*params) ⇒ Hexagon

Returns a new instance of Hexagon.



207
208
209
# File 'lib/hexagonly/hexagon.rb', line 207

def initialize(*params)
  setup_hex(*params) if params.size == 2
end