addLine {RConics} | R Documentation |
Plot a "homogeneous" line to a plot.
Description
Add a homogeneous line to a plot. The line parameters must be in homogeneous coordinates, e.g. (a,b,c)
.
Usage
addLine(l, ...)
plotHLine(l, ...)
Arguments
l |
A |
... |
graphical parameters such as |
Examples
# two points in homogeneous coordinates
p1 <- c(3,1,1)
p2 <- c(0,2,1)
# homogeneous line joining p1 and p2
l_12 <- join(p1,p2)
l_12
# plot
plot(0,0,type="n", xlim=c(-2,5),ylim=c(-2,5),asp=1)
points(t(p1))
points(t(p2))
addLine(l_12,col="red",lwd=2)
[Package RConics version 1.1.1 Index]