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



132
133
134
# File 'lib/geometry/segment.rb', line 132

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