Top Level Namespace

Defined Under Namespace

Modules: Geometry Classes: Fixnum, Float

Instance Method Summary collapse

Instance Method Details

#Point(x, y) ⇒ Object



21
22
23
# File 'lib/point.rb', line 21

def Point(x, y)
  Geometry::Point.new(x, y)
end

#Polygon(vertices) ⇒ Object



38
39
40
# File 'lib/polygon.rb', line 38

def Polygon(vertices)
  Geometry::Polygon.new(vertices)
end

#Segment(point1, point2) ⇒ Object



130
131
132
# File 'lib/segment.rb', line 130

def Segment(point1, point2)
  Geometry::Segment.new point1, point2
end