minAreaRect | R Documentation |
minAreaRect
calculates the minimum area enclosing
rectangle that fits a set of 2D points.
minAreaRect(x, y)
x |
A vector of x coordinates. |
y |
A vector of y coordinates of the same lenght as |
A list containing the height and width (in pixels) of the ellipse, the angle (in degrees) of its main axis with respect to the x axis, and the x and y coordinates of its center.
Simon Garnier, garnier@njit.edu
fitEllipse
, boxPoints
minAreaRect(rnorm(100), rnorm(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.