polygon-class {RGeostats} | R Documentation |
This 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
sets : List of polysets
surface : Surface of the Polygon
xlim : Extrema of the bounding box around the Polygon along X
ylim : Extrema of the bounding box around the Polygon along Y
limits : Matrix defining the bounding box
center : Vector defining the gravity center
extends : Vector defining the extension of the bounding box
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")