polygon-class {RGeostats}R Documentation

Class "polygon" Polygons

Description

This class contains the description of a polygon, constituted of one or several polysets.

Objects from the Class

Objects can be created by calls of the form new("polygon", ...). Contains a polygon

Slots

sets:

Object of class "list" List with the two vectors containing the 2-D coordinates of the polygon vertices

Methods

[

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

show

polygon.print

print

polygon.print

plot

polygon.plot

See Also

Other functions are available, such as:

Examples

showClass("polygon")

[Package RGeostats version 14.0.10 Index]