Generate Objects of Class "lineSegment"

Share:

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

1
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

Details

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

Value

A valid object of class "lineSegment"

Author(s)

Jeffrey H. Gove

See Also

lineSegment-methods

Examples

1
2
3
4
# 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.