Object
The class PLRuby::Point implement the PostgreSQL type point
Convert a String (PostgreSQL representation) to a Point
# File plruby.rb, line 1536 def from_string(string) end
create a Point with the 2 Float object (x, y)
# File plruby.rb, line 1601 def initialize(x, y) end
translate (right, up) self
# File plruby.rb, line 1541 def +(point) end
translate (left, down) self
# File plruby.rb, line 1545 def -(point) end
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
return the coordinate
indice can have the value 0 or 1
# File plruby.rb, line 1559 def [](indice) end
set the coordinate
indice can have the value 0 or 1
# File plruby.rb, line 1565 def []=(indice, value) end
return true if self is above other, i.e. self.y > other.y
# File plruby.rb, line 1575 def above?(other) end
return true if self is below other, i.e. self.y < other.y
# File plruby.rb, line 1580 def below?(other) end
return true if self and other are horizontal, i.e. self.y == other.y
# File plruby.rb, line 1591 def horizontal?(other) end
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
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
return true if self and other are vertical, i.e. self.x == other.x
# File plruby.rb, line 1622 def vertical?(other) end
Generated with the Darkfish Rdoc Generator 2.