Learn R Programming

pcds (version 0.1.4)

print.Lines3D: Print a Lines3D object

Description

Prints the call of the object of class "Lines3D", the coefficients of the line (in the form: x=x0 + a*t, y=y0 + b*t, and z=z0 + c*t), and the initial point together with the direction vector.

Usage

# S3 method for Lines3D
print(x, ...)

Value

The call of the object of class "Lines3D", the coefficients of the line (in the form: x=x0 + a*t, y=y0 + b*t, and z=z0 + c*t), and the initial point together with the direction vector.

Arguments

x

A Lines3D object.

...

Additional arguments for the S3 method 'print'.

See Also

summary.Lines3D, print.summary.Lines3D, and plot.Lines3D

Examples

Run this code
A<-c(1,10,3); B<-c(1,1,3);
vecs<-rbind(A,B)
Line3D(A,B,.1)
Line3D(A,B,.1,dir.vec=FALSE)

tr<-range(vecs);
tf<-(tr[2]-tr[1])*.1 #how far to go at the lower and upper ends in the x-coordinate
tsq<-seq(-tf*10-tf,tf*10+tf,l=100)

lnAB3D<-Line3D(A,B,tsq)
lnAB3D
print(lnAB3D)

Run the code above in your browser using DataLab