class PLRuby::Path
The class PLRuby::Path implement the PostgreSQL type path
Public Class Methods
from_string(string)
click to toggle source
Convert a String (PostgreSQL representation) to a Path
# File plruby.rb, line 1465 def from_string(string) end
new(points, closed = false)
click to toggle source
create a new Path object from the Array of Point points
# File plruby.rb, line 1507 def initialize(points, closed = false) end
Public Instance Methods
*(point)
click to toggle source
scale and rotate self
# File plruby.rb, line 1482 def *(point) end
+(point)
click to toggle source
translate (right, up) self
# File plruby.rb, line 1474 def +(point) end
-(point)
click to toggle source
translate (left, down) self
# File plruby.rb, line 1478 def -(point) end
/(point)
click to toggle source
scale and rotate self
# File plruby.rb, line 1486 def /(point) end
<<(path)
click to toggle source
concatenate the two paths (only if they are both open)
# File plruby.rb, line 1470 def <<(path) end
<=>(other)
click to toggle source
comparison function based on the path cardinality, i.e. self.npoints <=> other.npoints
# File plruby.rb, line 1491 def <=>(other) end
close()
click to toggle source
make a closed path
# File plruby.rb, line 1495 def close end
closed?()
click to toggle source
return true if self is a closed path
# File plruby.rb, line 1499 def closed? end
concat(path)
click to toggle source
concatenate the two paths (only if they are both open)
# File plruby.rb, line 1503 def concat(path) end
length()
click to toggle source
return the length of self
# File plruby.rb, line 1511 def length end
npoints()
click to toggle source
return the path cardinality
# File plruby.rb, line 1515 def npoints end
open()
click to toggle source
make an open path
# File plruby.rb, line 1519 def open end
to_polygon()
click to toggle source
convert self to a Polygon object
# File plruby.rb, line 1523 def to_polygon end