Class: VectorSalad::StandardShapes::Hexagon
- Inherits:
-
Polygon
- Object
- BasicShape
- Polygon
- VectorSalad::StandardShapes::Hexagon
- Defined in:
- lib/vector_salad/standard_shapes/hexagon.rb
Overview
Regular hexagon shape.
Instance Attribute Summary (collapse)
-
- (Object) options
inherited
from BasicShape
Returns the value of attribute options.
-
- (Object) sides
inherited
from Polygon
readonly
Returns the value of attribute sides.
Instance Method Summary (collapse)
-
- (Hexagon) initialize(radius, **options)
constructor
Create a regular hexagon.
Constructor Details
- (Hexagon) initialize(radius, **options)
Create a regular hexagon.
11 12 13 |
# File 'lib/vector_salad/standard_shapes/hexagon.rb', line 11 def initialize(radius, **) super(6, radius, **) end |
Instance Attribute Details
- (Object) options Originally defined in class BasicShape
Returns the value of attribute options
- (Object) sides (readonly) Originally defined in class Polygon
Returns the value of attribute sides