Class: Math::Geometry::Quadrilateral
- Inherits:
-
PlaneFigure
- Object
- Shape
- PlaneFigure
- Math::Geometry::Quadrilateral
- Defined in:
- lib/ruuuby/math/geometry/shape/quadrilateral.rb
Overview
has ‘4 edges` and `4 vertices`
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from PlaneFigure
Instance Method Summary collapse
- #area ⇒ Integer, Float
-
#initialize ⇒ Quadrilateral
constructor
A new instance of Quadrilateral.
Methods inherited from PlaneFigure
Constructor Details
#initialize ⇒ Quadrilateral
Returns a new instance of Quadrilateral.
14 15 16 |
# File 'lib/ruuuby/math/geometry/shape/quadrilateral.rb', line 14 def initialize @num_sides = 4 end |