print.TriLines: Print a 'TriLines' 'object'

View source: R/ClassFunctions.R

print.TriLinesR Documentation

Print a TriLines object

Description

Prints the call of the object of class "TriLines" and also the coefficients of the line (in the form: y = slope * x + intercept), and the vertices of the triangle with respect to which the line is defined.

Usage

## S3 method for class 'TriLines'
print(x, ...)

Arguments

x

A TriLines object.

...

Additional arguments for the S3 method 'print'.

Value

The call of the object of class "TriLines" , the coefficients of the line (in the form: y = slope * x + intercept), and the vertices of the triangle with respect to which the line is defined.

See Also

summary.TriLines, print.summary.TriLines, and plot.TriLines

Examples

## Not run: 
A<-c(0,0); B<-c(1,0); C<-c(1/2,sqrt(3)/2);
Te<-rbind(A,B,C)
xfence<-abs(A[1]-B[1])*.25
#how far to go at the lower and upper ends in the x-coordinate
x<-seq(min(A[1],B[1])-xfence,max(A[1],B[1])+xfence,l=3)

lnACM<-lineA2CMinTe(x)
lnACM
print(lnACM)

typeof(lnACM)
attributes(lnACM)

## End(Not run)


elvanceyhan/pcds documentation built on June 29, 2023, 8:12 a.m.