Class: NSWTopo::Labels::ConvexHull

Inherits:
GeoJSON::LineString show all
Defined in:
lib/nswtopo/layer/labels/convex_hull.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from GeoJSON::LineString

[], #anticlockwise?, #bounds, #clockwise?, #closed?, #crop, #path_length, #reverse, #sample_at, #segmentise, #signed_area, #simplify, #smooth_window, #svg_path_data, #trim

Constructor Details

#initialize(source, coordinates) ⇒ ConvexHull

Returns a new instance of ConvexHull.



4
5
6
7
# File 'lib/nswtopo/layer/labels/convex_hull.rb', line 4

def initialize(source, coordinates)
  @source = source
  super coordinates
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



9
10
11
# File 'lib/nswtopo/layer/labels/convex_hull.rb', line 9

def source
  @source
end