Learn R Programming

sampSurf (version 0.7-6)

lineSegment: Generate Objects of Class "'>lineSegment"

Description

This generic function has only one method (lineSegment-methods) used as a constructor function for objects that are of class "'>lineSegment". This method should be used in preference to new to insure a valid object.

Usage

lineSegment(length, orientation, ...)

Arguments

length

The length of the line segment in the appropriate units (feet for "English" or meters for "metric").

orientation

The line orientation clockwise from north as an azimuth in degrees.

Arguments that are defined in lineSegment-methods

Value

A valid object of class "'>lineSegment"

Details

Only one method currently exists for object generation. Its arguments are documented in lineSegment-methods.

See Also

lineSegment-methods

Examples

Run this code
# NOT RUN {
# a one chain segment...
ls = lineSegment(length=66, orientation=45, centerPoint=c(x=100, y=80), units='English')
summary(ls)
plot(ls, showLineCenter=TRUE, cex=2)
# }

Run the code above in your browser using DataLab