Segment: Generator of Segment objects

Description Usage Arguments Value See Also Examples

View source: R/pgs.R

Description

Generate a Segment object representing a line segment starting at the origin.

Usage

1

Arguments

end

a vector containing the Cartesian coordinates of the end point which does not lie at the origin.

Value

An object of Segment-class.

See Also

Segment-class, generators Quadrat, PointPattern.

Examples

1
Segment(c(1,0))

Example output

Loading required package: gsl
Loading required package: R2Cuba
An object of class "Segment"
Slot "dimspace":
[1] 2

Slot "coord":
     [,1]
[1,]    1
[2,]    0

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