Class: Reflex::EllipseShape

Inherits:
Shape
  • Object
show all
Defined in:
lib/reflex/ellipse_shape.rb

Instance Method Summary collapse

Methods inherited from Shape

#initialize, #on_contact, #on_contact_begin, #on_contact_end

Methods included from HasTags

#clear_tags, #tag, #tag=, #tags, #untag

Methods included from HasFrame

#inset_by, #move_by, #move_to, #resize_by, #resize_to

Methods included from Hookable

#hook

Constructor Details

This class inherits a constructor from Reflex::Shape

Instance Method Details

#angleObject



18
19
20
# File 'lib/reflex/ellipse_shape.rb', line 18

def angle ()
  angle_from..angle_to
end

#angle=(range) ⇒ Object



13
14
15
16
# File 'lib/reflex/ellipse_shape.rb', line 13

def angle= (range)
  angle_from range.min
  angle_to   range.max
end