Learn R Programming

pcds (version 0.1.1)

summary.Planes: Return a summary of a Planes object

Description

Returns the below information about the object:

call of the function defining the object, the defining 3D points, selected x, y and z points on the plane, equation of the plane, and coefficients of the plane.

Usage

# S3 method for Planes
summary(object, ...)

Arguments

object

Object of class Planes.

Additional parameters for summary.

Value

The call of the object of class 'Planes', the defining 3D points, selected x, y and z points on the plane, equation of the plane, and coefficients of the plane (in the form: z = A*x + B*y + C).

See Also

print.Planes, print.summary.Planes, and plot.Planes

Examples

Run this code
# NOT RUN {
A<-c(1,10,3); B<-c(1,1,3); C<-c(3,9,12)
pts<-rbind(A,B,C)

xr<-range(pts[,1]); yr<-range(pts[,2])
xf<-(xr[2]-xr[1])*.1 #how far to go at the lower and upper ends in the x-coordinate
yf<-(yr[2]-yr[1])*.1 #how far to go at the lower and upper ends in the y-coordinate
x<-seq(xr[1]-xf,xr[2]+xf,l=100)
y<-seq(yr[1]-yf,yr[2]+yf,l=100)

plABC<-Plane(A,B,C,x,y)
plABC
summary(plABC)

# }

Run the code above in your browser using DataLab