class PLRuby::Polygon
The class PLRuby::Polygon implement the PostgreSQL type polygon
Public Class Methods
Convert a String (PostgreSQL representation) to a Polygon
# File plruby.rb, line 1734 def from_string(string) end
create a new Polygon object from the Array of Point points
# File plruby.rb, line 1765 def initialize(points, closed = false) end
Public Instance Methods
return true if self is the same as other, i.e. all the points are the same
# File plruby.rb, line 1740 def ==(other) end
return the center of self, i.e. create a circle and return its center
# File plruby.rb, line 1745 def center end
return true if self contains other
other can be a Point or a Polygon
# File plruby.rb, line 1751 def contain?(other) end
return true if self is contained in other by determining if self bounding box is contained by other's bounding box.
# File plruby.rb, line 1756 def contained?(other) end
return true if self is contained in other by determining if self bounding box is contained by other's bounding box.
# File plruby.rb, line 1761 def in?(other) end
return true if self is strictly left of other, i.e. the right most point of self is left of the left most point of other
# File plruby.rb, line 1771 def left?(other) end
return the number of points in self
# File plruby.rb, line 1792 def npoints end
return true if self and other overlap by determining if their bounding boxes overlap.
# File plruby.rb, line 1788 def overlap?(other) end
return true if self is overlapping or left of other, i.e. the left most point of self is left of the right most point of other
# File plruby.rb, line 1777 def overleft?(other) end
return true if self is overlapping or right of other, i.e. the right most point of self is right of the left most point of other
# File plruby.rb, line 1783 def overright?(other) end
return true if self is strictly right of other, i.e. the left most point of self is right of the left most point of other
# File plruby.rb, line 1798 def right?(other) end
return true if self is the same as other, i.e. all the points are the same
# File plruby.rb, line 1803 def same?(other) end
convert self to a Box
# File plruby.rb, line 1807 def to_box end
convert self to a Circle
# File plruby.rb, line 1811 def to_circle end
convert self to a Path
# File plruby.rb, line 1815 def to_path end
convert self to a Point by returning its center
# File plruby.rb, line 1819 def to_point end