Learn R Programming

pcds (version 0.1.8)

print.TriLines: 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 TriLines
print(x, ...)

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.

Arguments

x

A TriLines object.

...

Additional arguments for the S3 method 'print'.

See Also

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

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab