Class: Hexagonly::Polygon

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

Defined Under Namespace

Modules: Methods

Instance Attribute Summary collapse

Attributes included from Methods

#collected_points, #rejected_points

Instance Method Summary collapse

Methods included from Methods

#contains?, #grab, included

Constructor Details

#initialize(poly_points) ⇒ Polygon

Returns a new instance of Polygon.

Parameters:



89
90
91
# File 'lib/hexagonly/polygon.rb', line 89

def initialize(poly_points)
  @poly_points = poly_points
end

Instance Attribute Details

#poly_pointsObject

Returns the value of attribute poly_points.



86
87
88
# File 'lib/hexagonly/polygon.rb', line 86

def poly_points
  @poly_points
end