Class: NSWTopo::Labels::ConvexHull
- Inherits:
-
GeoJSON::LineString
- Object
- GeoJSON::LineString
- NSWTopo::Labels::ConvexHull
- Defined in:
- lib/nswtopo/layer/labels/convex_hull.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, coordinates) ⇒ ConvexHull
constructor
A new instance of ConvexHull.
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
#source ⇒ Object (readonly)
Returns the value of attribute source.
9 10 11 |
# File 'lib/nswtopo/layer/labels/convex_hull.rb', line 9 def source @source end |