View source: R/ClassFunctions.R
summary.Lines3D | R Documentation |
Lines3D
object
Returns the below information about the object
:
call
of the function defining the object
, the defining vectors (i.e., initial and direction vectors),
selected x
, y
, and z
points on the line,
equation of the line (in parametric form), and coefficients
of the line.
## S3 method for class 'Lines3D'
summary(object, ...)
object |
An |
... |
Additional parameters for |
call
of the function defining the object
,
the defining vectors (i.e., initial and direction vectors),
selected x
, y
, and z
points on the line,
equation of the line (in parametric form),
and coefficients
of the line
(for the form: x=x0 + A*t
, y=y0 + B*t
,
and z=z0 + C*t
).
print.Lines3D
,
print.summary.Lines3D
,
and plot.Lines3D
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
summary(lnPQ3D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.