Class: RuPov::Objects::FinitePatchPrimitives::Polygon
- Defined in:
- lib/rupov.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(points) {|_self| ... } ⇒ Polygon
constructor
A new instance of Polygon.
Methods inherited from Base
Constructor Details
#initialize(points) {|_self| ... } ⇒ Polygon
Returns a new instance of Polygon.
201 202 203 204 205 |
# File 'lib/rupov.rb', line 201 def initialize( points ) super( 'polygon' ) self << Methods::MultiValue.new( [points.length]+points ) yield(self) if block_given? and self.class == Polygon end |