Class: Hexflex::TriangleRvgGroup

Inherits:
SimpleDelegator
  • Object
show all
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

Instance Method Summary collapse

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

#baseObject (readonly)

Returns the value of attribute base.



9
10
11
# File 'lib/hexflex/triangle_rvg_group.rb', line 9

def base
  @base
end

#heightObject (readonly)

Returns the value of attribute height.



9
10
11
# File 'lib/hexflex/triangle_rvg_group.rb', line 9

def height
  @height
end