boxPoints | R Documentation |
boxPoints
finds the four vertices of a rotated rectangle
computed by minAreaRect
or fitEllipse
.
boxPoints(rect)
rect |
A list describing a rotated rectangle as created by
|
A matrix containing the coordinates of the four vertices of the rotated rectangle in the following order: bottom left, top left, top right, and bottom right.
Simon Garnier, garnier@njit.edu
minAreaRect
, fitEllipse
rect <- minAreaRect(rnorm(100), rnorm(100))
boxPoints(rect)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.