Class: VectorSalad::StandardShapes::Triangle

Inherits:
Polygon show all
Defined in:
lib/vector_salad/standard_shapes/triangle.rb

Instance Attribute Summary

Attributes inherited from Polygon

#sides

Attributes inherited from BasicShape

#options

Instance Method Summary collapse

Methods inherited from Polygon

#to_path

Methods included from Mixins::At

#[], #at, #move

Constructor Details

#initialize(radius, **options) ⇒ Triangle

Create an equilateral triangle.

Examples: new(100)



10
11
12
# File 'lib/vector_salad/standard_shapes/triangle.rb', line 10

def initialize(radius, **options)
  super(3, radius, **options)
end