polygon-class {RGeostats} | R Documentation |
Thos class contains the description of a polygon, constituted of one or several polysets.
Objects can be created by calls of the form new("polygon", ...)
.
Contains a polygon
sets
:Object of class "list"
List with the two vectors containing the 2-D coordinates of the polygon vertices
polygon[i,j]
returns the i-th
coordinate (1 or 2) of the j-th
vertex of the polygon-class
Same but for assignment
polygon$parameter
is used to query the value of parameter
from polygon
:
npol : Number of vertices
xy : Array of polygon vertices
surface : Surface of the polygon-class
Same but for assignment
Other functions are available, such as:
polygon.create
Create a new polygon-class
polygon.digit
Digitize a polygon-class
from a graphic
polygon.inside
Check if a set of 2-D points belong to a polygon-class
or not.
polygon.read
Read a Polygon from an ASCII file
polygon.write
Write a Polygon in an ASCII file
showClass("polygon")