Segment-class: Class "Segment"

Description Objects from the Class Slots Extends Methods See Also

Description

Extend class "Figure". Representation of line segments starting from the origin.

Objects from the Class

Objects can be created by calls of the form new("Segment", ...). It is recommended to use the generator Segment.

Slots

dimspace:

Object of class "numeric". Dimension of the space where the segment lies.

coord:

Object of class "matrix". A 2x1 matrix containing the Cartesian coordinates of the end point which does not lie at the origin.

Extends

Class "Figure", directly.

Methods

content

signature(x = "Segment"): compute the segment length.

covariogram

signature(x = "Segment", f = "function"): covariogram for a Segment object.

plot

signature(x = "Segment", y = "missing"): plot a Segment object. Implemented only for planar segments. The extra argument origin (default: null vector) may be used to plot the segment translated by the vector origin. If the extra argument add (default: FALSE) is TRUE, the segment is added to the current plot.
signature(x = "Segment", y = "matrix"): Plot the strip defined as the Minkowski sum of x and the linear subspace spanned by the column vectors of y. Only implemented in 2D. In addition to the two arguments origin and add described above, the arguments density, angle, col, border and lty (see polygon) can be provided in order to customize the graphical representation of the strip.

print

signature(x = "Segment"): print a segment object.

See Also

Generator Segment, Quadrat-class, PointPattern-class.


pgs documentation built on May 29, 2017, 5:30 p.m.