InBox | R Documentation |
Checks if a point is inside a box. The point is specified bi its x and y coordinates and the bom with the minimum and maximum values on both coordinate axis: xmin, xmax, ymin, ymax. The vertices of the box are then (xmin, ymin), (xmax, ymin), (xmax, ymax) and (xmin, ymax)
InBox(x, y, xmin, xmax, ymin, ymax)
x |
x coordinate of the point |
y |
x coordinate of the point |
xmin |
minimum value of X |
xmax |
maximum value of X |
ymin |
minimum value of Y |
ymax |
maximum value of Y |
Returns a logical value : TRUE if the point is inside the box and FALSE otherwise.
Jose Luis Vicente Villardon
InBox(0, 0, -1, 1, -1, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.