class PLRuby::Point - RDoc Documentation

# class PLRuby::Point

The class PLRuby::Point implement the PostgreSQL type point

### Public Class Methods

from_string(string) click to toggle source

Convert a String (PostgreSQL representation) to a Point

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

new(x, y) click to toggle source

create a Point with the 2 Float object (x, y)

    # File plruby.rb, line 1601
    def initialize(x, y)
    end

### Public Instance Methods

*(point) click to toggle source

scale and rotate self

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

+(point) click to toggle source

translate (right, up) self

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

-(point) click to toggle source

translate (left, down) self

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

/(point) click to toggle source

scale and rotate self

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

==(other) click to toggle source

return true if self and other are the same, i.e. self.x == other.x && self.y == other.y

    # File plruby.rb, line 1570
    def ==(other)
    end

[](indice) click to toggle source

return the coordinate

indice can have the value 0 or 1

    # File plruby.rb, line 1559
    def [](indice)
    end

[]=(indice, value) click to toggle source

set the coordinate

indice can have the value 0 or 1

    # File plruby.rb, line 1565
    def []=(indice, value)
    end

above?(other) click to toggle source

return true if self is above other, i.e. self.y > other.y

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

below?(other) click to toggle source

return true if self is below other, i.e. self.y < other.y

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

contained?(other) click to toggle source

return true if self is contained in other

other can be Point, Polygon or a Circle object

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

horizontal?(other) click to toggle source

return true if self and other are horizontal, i.e. self.y == other.y

    # File plruby.rb, line 1591
    def horizontal?(other)
    end

in?(other) click to toggle source

return true if self is contained in other

other can be Point, Polygon or a Circle object

    # File plruby.rb, line 1597
    def in?(other)
    end

left?(other) click to toggle source

return true if self is at the left of other, i.e. self.x < other.x

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

on?(other) click to toggle source

return true if self is on other

other can be Point, Segment, Box or Path object

    # File plruby.rb, line 1612
    def on?(other)
    end

right?(other) click to toggle source

return true if self is at the right of other, i.e. self.x > other.x

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

vertical?(other) click to toggle source

return true if self and other are vertical, i.e. self.x == other.x

    # File plruby.rb, line 1622
    def vertical?(other)
    end

x() click to toggle source

return x for self

    # File plruby.rb, line 1626
    def x
    end

x=(value) click to toggle source

set the x value for self

    # File plruby.rb, line 1630
    def x=(value)
    end

y() click to toggle source

return y for self

    # File plruby.rb, line 1634
    def y
    end

y=(value) click to toggle source

set the y value for self

    # File plruby.rb, line 1638
    def y=(value)
    end