Class: Cute::Circle

Inherits:
Object
  • Object
show all
Defined in:
docstub/circle.rb

Instance Method Summary collapse

Constructor Details

#initializeCircle

Returns a new instance of Circle.

Parameters:

  • position (V2)

    The position vector for the center of the circle

  • radius (Float)

    The radius of the circle



10
11
# File 'docstub/circle.rb', line 10

def initialize(position, radius)
end

Instance Method Details

#inspectString

Returns Detailed string representation.

Returns:

  • (String)

    Detailed string representation



48
49
# File 'docstub/circle.rb', line 48

def inspect
end

#positionV2

Returns Position vector for the center of the circle.

Returns:

  • (V2)

    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.

Parameters:

  • position (V2)

    New position vector for the center of the circle

Returns:

  • (V2)

    The new position



23
24
# File 'docstub/circle.rb', line 23

def position=(position)
end

#radiusFloat

Returns Radius of the circle.

Returns:

  • (Float)

    Radius of the circle



29
30
# File 'docstub/circle.rb', line 29

def radius
end

#radius=Float

Returns The new radius.

Parameters:

  • radius (Float)

    New radius for the circle

Returns:

  • (Float)

    The new radius



36
37
# File 'docstub/circle.rb', line 36

def radius=(radius)
end

#to_sString

Returns String representation.

Returns:

  • (String)

    String representation



42
43
# File 'docstub/circle.rb', line 42

def to_s
end