Class: Cute::Circle
- Inherits:
-
Object
- Object
- Cute::Circle
- Defined in:
- docstub/circle.rb
Instance Method Summary collapse
-
#initialize ⇒ Circle
constructor
A new instance of Circle.
-
#inspect ⇒ String
Detailed string representation.
-
#position ⇒ V2
Position vector for the center of the circle.
-
#position= ⇒ V2
The new position.
-
#radius ⇒ Float
Radius of the circle.
-
#radius= ⇒ Float
The new radius.
-
#to_s ⇒ String
String representation.
Constructor Details
#initialize ⇒ Circle
Returns a new instance of Circle.
10 11 |
# File 'docstub/circle.rb', line 10 def initialize(position, radius) end |
Instance Method Details
#inspect ⇒ String
Returns Detailed string representation.
48 49 |
# File 'docstub/circle.rb', line 48 def inspect end |
#position ⇒ V2
Returns Position vector for the center of the circle.
16 17 |
# File 'docstub/circle.rb', line 16 def position end |
#position= ⇒ V2
Returns The new position.
23 24 |
# File 'docstub/circle.rb', line 23 def position=(position) end |
#radius ⇒ Float
Returns Radius of the circle.
29 30 |
# File 'docstub/circle.rb', line 29 def radius end |
#radius= ⇒ Float
Returns The new radius.
36 37 |
# File 'docstub/circle.rb', line 36 def radius=(radius) end |
#to_s ⇒ String
Returns String representation.
42 43 |
# File 'docstub/circle.rb', line 42 def to_s end |