class PLRuby::Polygon - RDoc Documentation

# class PLRuby::Polygon

The class PLRuby::Polygon implement the PostgreSQL type polygon

### Public Class Methods

from_string(string) click to toggle source

Convert a String (PostgreSQL representation) to a Polygon

    # File plruby.rb, line 1734
    def from_string(string)
    end

new(points, closed = false) click to toggle source

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

==(other) click to toggle source

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

center() click to toggle source

return the center of self, i.e. create a circle and return its center

    # File plruby.rb, line 1745
    def center
    end

contain?(other) click to toggle source

return true if self contains other

other can be a Point or a Polygon

    # File plruby.rb, line 1751
    def contain?(other)
    end

contained?(other) click to toggle source

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

in?(other) click to toggle source

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

left?(other) click to toggle source

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

npoints() click to toggle source

return the number of points in self

    # File plruby.rb, line 1792
    def npoints
    end

overlap?(other) click to toggle source

return true if self and other overlap by determining if their bounding boxes overlap.

    # File plruby.rb, line 1788
    def overlap?(other)
    end

overleft?(other) click to toggle source

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

overright?(other) click to toggle source

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

right?(other) click to toggle source

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

same?(other) click to toggle source

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

to_box() click to toggle source

convert self to a Box

    # File plruby.rb, line 1807
    def to_box
    end

to_circle() click to toggle source

convert self to a Circle

    # File plruby.rb, line 1811
    def to_circle
    end

to_path() click to toggle source

convert self to a Path

    # File plruby.rb, line 1815
    def to_path
    end

to_point() click to toggle source

convert self to a Point by returning its center

    # File plruby.rb, line 1819
    def to_point
    end