lib/geometry/polyline.rb in geometry-6.2 vs lib/geometry/polyline.rb in geometry-6.3
- old
+ new
@@ -13,9 +13,13 @@
=end
class Polyline
attr_reader :edges, :vertices
+ # @!attribute points
+ # @return [Array<Point>] all of the vertices of the {Polyline} (alias of #vertices)
+ alias :points :vertices
+
# Construct a new Polyline from Points and/or Edges
# @note The constructor will try to convert all of its arguments into {Point}s and
# {Edge}s. Then successive {Point}s will be collpased into {Edge}s. Successive
# {Edge}s that share a common vertex will be added to the new {Polyline}. If
# there's a gap between {Edge}s it will be automatically filled with a new