class PLRuby::Circle - RDoc Documentation

# class PLRuby::Circle

The class PLRuby::Circle implement the PostgreSQL type circle

### Public Class Methods

from_string(string) click to toggle source

Convert a String (PostgreSQL representation) to a Circle

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

new(center, radius) click to toggle source

create a Circle object with center and radius

center can be a Point or an Array [x, y]

    # File plruby.rb, line 1885
    def initialize(center, radius)
    end

### Public Instance Methods

*(point) click to toggle source

scale and rotate self

    # File plruby.rb, line 1846
    def *(point)
    end

+(point) click to toggle source

translate (right, up) self

    # File plruby.rb, line 1838
    def +(point)
    end

-(point) click to toggle source

translate (left, down) self

    # File plruby.rb, line 1842
    def -(point)
    end

/(point) click to toggle source

scale and rotate self

    # File plruby.rb, line 1850
    def /(point)
    end

<=>(other) click to toggle source

comparison function based on area, i.e. self.area <=> other.area

    # File plruby.rb, line 1855
    def <=>(other)
    end

above?(other) click to toggle source

return true if self is entirely above other

    # File plruby.rb, line 1863
    def above?(other)
    end

area() click to toggle source

return the area

    # File plruby.rb, line 1859
    def area
    end

below?(other) click to toggle source

return true if self is entirely below other

    # File plruby.rb, line 1867
    def below?(other)
    end

contain?(other) click to toggle source

return true if self contain other

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

contained?(other) click to toggle source

return true if self is contained in other

    # File plruby.rb, line 1875
    def contained?(other)
    end

diameter() click to toggle source

return the diameter

    # File plruby.rb, line 1879
    def diameter
    end

left?(other) click to toggle source

return true if self is strictly left of other

    # File plruby.rb, line 1898
    def left?(other)
    end

overlap?(other) click to toggle source

return true if self overlap other

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

overleft?(other) click to toggle source

return true if the right edge of self is to the left of the right edge of other

    # File plruby.rb, line 1894
    def overleft?(other)
    end

overright?(other) click to toggle source

return true if the left edge of self is to the right of the left edge of other

    # File plruby.rb, line 1903
    def overright?(other)
    end

radius() click to toggle source

return the radius

    # File plruby.rb, line 1907
    def radius
    end

right?(other) click to toggle source

return true if self is strictly right of other

    # File plruby.rb, line 1911
    def right?(other)
    end

same?(other) click to toggle source

return true if self is the same than other, i.e. self.center == other.center && self.radius == other.radius

    # File plruby.rb, line 1916
    def same?(other)
    end

to_box() click to toggle source

convert self to a Box

    # File plruby.rb, line 1920
    def to_box
    end

to_point() click to toggle source

convert self to a Point by returning its center

    # File plruby.rb, line 1924
    def to_point
    end

to_polygon(npts) click to toggle source

convert self to a Polygon with npts Points

    # File plruby.rb, line 1928
    def to_polygon(npts)
    end