Class: Hexflex::TriangleRvgGroup
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Hexflex::TriangleRvgGroup
- Defined in:
- lib/hexflex/triangle_rvg_group.rb
Constant Summary collapse
- SIMPLE_TRIANGLE_BASE =
Math::sqrt(3)
- SIMPLE_TRIANGLE_HEIGHT =
1.5
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
Instance Method Summary collapse
-
#initialize(rvg_group, base:, height:) ⇒ TriangleRvgGroup
constructor
A new instance of TriangleRvgGroup.
Constructor Details
#initialize(rvg_group, base:, height:) ⇒ TriangleRvgGroup
Returns a new instance of TriangleRvgGroup.
11 12 13 14 15 |
# File 'lib/hexflex/triangle_rvg_group.rb', line 11 def initialize(rvg_group, base:, height:) @base = base @height = height super(rvg_group) end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
9 10 11 |
# File 'lib/hexflex/triangle_rvg_group.rb', line 9 def base @base end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
9 10 11 |
# File 'lib/hexflex/triangle_rvg_group.rb', line 9 def height @height end |