corners | R Documentation |
Returns the four corners of a rectangle
corners(window)
window |
A window.
An object of class |
This trivial function is occasionally convenient.
If window
is of type "rectangle"
this returns the
four corners of the window itself;
otherwise, it returns the corners of the bounding rectangle
of the window.
A list with two components x
and y
, which are numeric
vectors of length 4 giving the coordinates of the four corner points
of the (bounding rectangle of the) window.
and \rolf
quad.object
,
quadscheme
w <- unit.square()
corners(w)
# returns list(x=c(0,1,0,1),y=c(0,0,1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.