Learn R Programming

IFC (version 0.1.1)

cpp_pnt_in_gate: Point in Gate

Description

This function checks if points lie in a polygon or ellipse.

Arguments

pnts

NumericMatrix, a 2-columns matrix with (x and y) coordinates of the points of interest.

gate

NumericMatrix, a 2-columns matrix defining polygon vertices or ellipse boundaries.

algorithm

int, used for computation. Default is 1. 1: Trigonometry. 2: Special case = axes-aligned rectangle. 3: Special case = axes-aligned ellipse.

epsilon

double, epsilon threshold value. Default is 0.000000000001