print.Lines3D: Print a 'Lines3D' 'object'

View source: R/ClassFunctions.R

print.Lines3DR Documentation

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 class 'Lines3D'
print(x, ...)

Arguments

x

A Lines3D object.

...

Additional arguments for the S3 method 'print'.

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.

See Also

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

Examples

## Not run: 
P<-c(1,10,3); Q<-c(1,1,3);
vecs<-rbind(P,Q)
Line3D(P,Q,.1)
Line3D(P,Q,.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=3) #try also l=10, 20 or 100

lnPQ3D<-Line3D(P,Q,tsq)
lnPQ3D
print(lnPQ3D)

typeof(lnPQ3D)
attributes(lnPQ3D)

## End(Not run)


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