inbox: Checks if a point is inside a box

Description Usage Arguments Value Author(s) Examples

View source: R/inbox.R

Description

Checks if a point is inside a box. The point is specified bi its x and y coordinates and the box 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).

Usage

1
inbox(x, y, xmin, xmax, ymin, ymax)

Arguments

x

x coordinate of the point.

y

y coordinate of the point.

xmin

Minimum value of X.

xmax

Maximum value of X.

ymin

Minimum value of Y.

ymax

Maximum value of Y.

Value

Returns a logical value: TRUE if the point is inside the box and FALSE otherwise.

Author(s)

Jose Luis Vicente Villardon

Examples

1
inbox(0, 0, -1, 1, -1, 1)

PERMANOVA documentation built on Sept. 6, 2021, 5:07 p.m.

Related to inbox in PERMANOVA...