Class: Mageo::Cylinder
- Inherits:
-
Object
- Object
- Mageo::Cylinder
- Defined in:
- lib/mageo/cylinder.rb
Overview
Class for cylinder
Instance Attribute Summary collapse
-
#positions ⇒ Object
readonly
Returns the value of attribute positions.
-
#radius ⇒ Object
readonly
Returns the value of attribute radius.
Instance Method Summary collapse
-
#initialize(position, radius) ⇒ Cylinder
constructor
座標と半径 positions は 両底面の中心座標を入れた配列。.
Constructor Details
Instance Attribute Details
#positions ⇒ Object (readonly)
Returns the value of attribute positions.
8 9 10 |
# File 'lib/mageo/cylinder.rb', line 8 def positions @positions end |
#radius ⇒ Object (readonly)
Returns the value of attribute radius.
8 9 10 |
# File 'lib/mageo/cylinder.rb', line 8 def radius @radius end |