Class: Math::Geometry::Circle

Inherits:
PlaneFigure show all
Defined in:
lib/ruuuby/math/geometry/shape/circle.rb

Overview

Instance Attribute Summary

Attributes inherited from PlaneFigure

#num_sides

Instance Method Summary collapse

Constructor Details

#initialize(radius) ⇒ Circle

Returns a new instance of Circle.



14
15
16
17
18
# File 'lib/ruuuby/math/geometry/shape/circle.rb', line 14

def initialize(radius)
  @radius    = radius
  @num_sides = ::Float::INFINITY
  super()
end

Instance Method Details

#sum_of_interior_anglesObject



22
# File 'lib/ruuuby/math/geometry/shape/circle.rb', line 22

def sum_of_interior_angles; ::ThetaAngle.new_degree(360); end