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



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

def angle()
  angle_from..angle_to
end

#angle=(range) ⇒ Object



10
11
12
13
# File 'lib/reflex/ellipse_shape.rb', line 10

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