Class PLRuby::Path
In: plruby.rb
Parent: Object

The class PLRuby::Path implement the PostgreSQL type path

Methods

*   +   -   /   <<   <=>   close   closed?   concat   from_string   length   new   npoints   open   to_polygon  

Included Modules

Comparable

Public Class methods

Convert a String (PostgreSQL representation) to a Path

create a new Path object from the Array of Point points

Public Instance methods

scale and rotate self

translate (right, up) self

translate (left, down) self

scale and rotate self

concatenate the two paths (only if they are both open)

comparison function based on the path cardinality, i.e. self.npoints <=> other.npoints

make a closed path

return true if self is a closed path

concatenate the two paths (only if they are both open)

return the length of self

return the path cardinality

make an open path

convert self to a Polygon object

[Validate]