Top Level Namespace

Defined Under Namespace

Modules: Geometry Classes: Fixnum, Float

Instance Method Summary collapse

Instance Method Details

#Point(x, y) ⇒ Object


25
26
27
# File 'lib/geometry/point.rb', line 25

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

#Polygon(vertices) ⇒ Object


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

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

#Segment(point1, point2) ⇒ Object


138
139
140
# File 'lib/geometry/segment.rb', line 138

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