Class: SimplePolygons::Line

Inherits:
Polygon
  • Object
show all
Defined in:
lib/simple-polygons.rb

Overview

Represents a line.

Instance Method Summary collapse

Methods inherited from Polygon

#number_of_points

Constructor Details

#initialize(start_loc, end_loc) ⇒ Line

Returns a new instance of Line.



43
44
45
# File 'lib/simple-polygons.rb', line 43

def initialize(start_loc, end_loc)
  super([start_loc, end_loc])
end